GetDataSize

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Obtains the size of data in a tensor.

Prototype

1
uint64_t *GetDataSize() const

Parameters

None

Returns

Data size of a tensor.

Exception Handling

None

Constraints

This API modifies the returned TensorDesc, which does not affect the existing TensorDesc information in the Tensor object.