Inputs
Function Usage
Sets input pointers for values of Context. values carry the pointer array of the void* type.
Prototype
1 | OpKernelContextBuilder &Inputs(std::vector<void *> inputs) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
inputs |
Input |
Input pointer array, which is managed by the caller. The caller must ensure that the lifecycle of the input pointer is longer than that of the ContextHolder object generated by Build. |
Returns
A reference to the OpKernelContextBuilder object. It is used for chaining method calls.
Constraints
This API must be called before the Build method call. Otherwise, the constructed KernelContext will contain undefined data.
Parent topic: OpKernelContextBuilder