Function MSTensorGetMutableData

Function Documentation

void *MSTensorGetMutableData(const MSTensorHandle tensor)

Obtain the mutable data pointer of the tensor. If the internal data is empty, it will allocate memory.

参数

tensor[in] Tensor object handle.

返回

The data pointer of the tensor.