GetValue
Function Usage
Obtains the tensor buffer on the host. It checks whether the tensor is on the host, and then call GetBuffer to obtain the buffer.
Prototype
template<typename T, typename... Ix> APP_ERROR GetValue(T &value, Ix... index) const;
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
value |
Output |
Tensor buffer |
index |
Input |
Tensor index to be obtained |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: TensorBase