Function MSTensorSetShape

Function Documentation

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

Set the shape for the tensor.

参数
  • tensor[in] Tensor object handle.

  • shape[in] The shape array.

  • shape_num[in] Dimension of shape.