Function MSTensorSetShape

Function Documentation

void MSTensorSetShape(MSTensorHandle tensor, const int64_t *shape, size_t shape_num)

Set the shape for the tensor.

Parameters
  • tensor[in] Tensor object handle.

  • shape[in] The shape array.

  • shape_num[in] Dimension of shape.