Output
Description
Obtains the output tensor.
The index argument must be within the valid range. If the operation fails, a null pointer is returned.
Prototype
Tensor *Output(uint32_t index) const
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Sequence defined in the IR prototype, indexed starting at 0. |
Returns
A Tensor * for the pointer to the output tensor. If the operation fails, a null pointer is returned.
Restrictions
None
Example
Tensor *input0 = ctx.Output(0);
Parent topic: Class CpuKernelContext