Function: float_to_float16
C Prototype |
aclFloat16 aclFloatToFloat16(float value) |
|---|---|
Python Function |
output = acl.float_to_float16(value) |
Function Usage |
Converts data of the float32 type to data of the aclFloat16 type. |
Input Description |
value: float, data to be converted. |
Return Value |
output: int, data of the aclFloat16 type. |
Restrictions |
None |
Parent topic: Common APIs