IONum
Function Usage
Sets the numbers of input and output IR prototypes of an operator to build ComputeNodeInfo in the base class ExtendedKernelContext of each subclass Context. By default, this API has one input instance and one output instance for each IR prototype.
Prototype
1 | T &IONum(size_t input_ir_num, size_t output_ir_num) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
input_ir_num |
Input |
Number of input IR prototypes. |
output_ir_num |
Input |
Number of output IR prototypes. |
Returns
A reference to the subclass object of type T. It is used for subclass chain calls.
Constraints
This API is mutually exclusive to IOInstanceNum. Only one of the two APIs needs to be called. The API that is called first prevails.
Parent topic: OpContextBuilderBase