[Python] Python numpy float16 datatype operations, and float8?

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    when performing math operations on float16 Numpy numbers, the result is also in float16 type number. My question is how exactly the result is computed? Say Im multiplying/adding two float16 numbers, does python generate the result in float32 and then truncate/round the result to float16? Or does the calculation performed in '16bit multiplexer/adder hardware' all the way?

    another question - is there a float8 type? I couldnt find this one... if not, then why? Thank-you all!

    Continue reading...

Compartilhe esta Página