NodeIoNum

Function Usage

Declares the numbers of inputs and outputs in the operator definition.

Prototype

ContextBuilder &NodeIoNum(size_t inputNum, size_t outputNum);

Parameters

Parameter

Input/Output

Description

inputNum

Input

Number of inputs in the operator IR prototype definition.

outputNum

Input

Number of outputs in the operator IR prototype definition.

Returns

Object of the current ContextBuilder

Constraints

This function must be used together with IrInstanceNum.

Example

auto builder = ContextBuilder().NodeIoNum (5, 3);// This operator has five inputs and three outputs.