aclFloatToFloat16
Description
Converts data from float32 to aclFloat16.
Prototype
aclFloat16 aclFloatToFloat16(float value)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
value |
Input |
Data to convert. |
Returns
Result data.
Note: The C language does not support the float16 type. Therefore, the return value is stored in uint16_t format. If printing is required, convert the value in uint16_t format to a value in float16 or float type first.
Parent topic: System Configuration