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
1 2 | template<typename T, typename... Ix> APP_ERROR TensorBase::GetValue(T &value, Ix... index) const; |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
value |
Output |
Obtained tensor buffer |
index |
Input |
Tensor index to be obtained |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: TensorBase