目录

GetInstanceNum

Function Description

Obtains the actual number of inputs corresponding to an input defined by the IR.

Function Prototype

uint32_t GetInstanceNum() const

Parameters

None

Return Value

Actual number of inputs corresponding to an input defined by the IR

Restrictions

None

Calling Example

// The first input defined by the IR is a dynamic input, and there are 10 actual inputs.
AnchorInstanceInfo anchor_0(0, 10);
auto input_num_0 = anchor_0.GetInstanceNum(); // input_num_0 = 10