Function: float16_to_float

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

Converts data from aclFloat16 to float32.

Prototype

  • C Prototype

    float aclFloat16ToFloat(aclFloat16 value)
    
  • Python Function

    output = acl.float16_to_float(value)
    

Parameters

Parameter Description
value Int, data to be converted, of the aclFloat16 type.

Return Values

Return Value Description
output Float.