Function MSTensorGetElementNum

Function Documentation

int64_t MSTensorGetElementNum(const MSTensorHandle tensor)

Obtain the element number of the tensor.

Parameters

tensor[in] Tensor object handle.

Returns

The element number of the tensor.