Function MSTensorGetShape

Function Documentation

const int64_t *MSTensorGetShape(const MSTensorHandle tensor, size_t *shape_num)

Obtain the shape of the tensor.

Parameters
  • tensor[in] Tensor object handle.

  • shape_num[out] Dimension of shape.

Returns

The shape array of the tensor.