Input
Description
Obtains the input tensor.
The index argument must be within the valid range. If the operation fails, a null pointer is returned.
Prototype
Tensor *Input(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 input tensor. If the operation fails, a null pointer is returned.
Restrictions
None
Example
Tensor *input0 = ctx.Input(0);
Parent topic: Class CpuKernelContext