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.

Parameters

tensor[in] Tensor object handle.

Returns

The data pointer of the tensor.