NodeIoNum

Function

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

Prototype

1
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

Restrictions

This function must be used together with IrInstanceNum.

Example

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