MxTensor
Function Usage
Defines the tensor data information transferred between plugins in a stream.
Structure Definition
struct MxTensor{
uint64_t tensorDataPtr;
int32_t tensorDataSize;
uint32_t deviceId;
MxBase::MemoryData::MemoryType memType;
uint64_t freeFunc;
std::vector<int32_t> tensorShape;
std::string dataStr;
int32_t tensorDataType;
}
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
tensorDataPtr |
Input |
Tensor data pointer |
tensorDataSize |
Input |
Data size of a tensor, in bytes |
deviceId |
Input |
ID of the device where a tensor is located |
memType |
Input |
Memory type of the data. For details, see MemoryData. |
freeFunc |
Input |
Pointer of the tensor data destruction function |
tensorShape |
Input |
Shape information of a tensor |
dataStr |
Input |
Actual memory data of a tensor |
tensorDatatype |
Input |
Tensor data type. For details, see MxDataType. |
Parent topic: Data Structure