Post

Replies

Boosts

Views

Activity

Reply to How to store float as half data type from cpu side
You can use __fp16 or _Float16 data types. __fp16 is not an arithmetic data type and should be used for storage purposes. It allows conversion from and to floats. _Float16 is an arithmetic data type and have supports for standard operations. _Float16 is more modern and a better choice. You can set a half constant with the f16 suffix following your real number.
May ’22