Function: data_type_size

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

Obtains the size of the aclDataType data, in bytes.

Prototype

  • C Prototype
    1
    size_t aclDataTypeSize(aclDataType dataType)
    
  • Python Function
    1
    size = acl.data_type_size(data_type)
    

Parameters

Parameter

Description

data_type

Size of the aclDataType data to be obtained. The value is an integer.

Return Values

Return Value

Description

size

Size of the aclDataType data. The value is an integer, in bytes.