简体   繁体   中英

how to add support for float16 type in array class

Why does the C/Python array class does not support float16?

/ I can see that other projects like numba also dont have support float16/

Is there way to add support? if yes is it easy?

the reason i'm asking is because if an array is too big float32 takes twice the space. Having an option seem reasonable ! if not available there have to be some reason


It seems the intel, CPUs, does not support float16 ops naively. but support conversion..

lscpu | grep Flags | grep f16c

https://en.wikipedia.org/wiki/F16C

what do you mean its not supported etc?

a_float_16 = numpy.zeros(10, dtype=numpy.float16)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM