Function: float16_to_float

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Converts data of the aclFloat16 type to data of the float32 type.

Prototype

  • C Prototype
    1
    float aclFloat16ToFloat(aclFloat16 value)
    
  • Python Function
    1
    output = acl.float16_to_float(value)
    

Parameters

Parameter

Description

value

Data to be converted. The value is an integer of the aclFloat16 type.

Return Values

Return Value

Description

output

Float.