GetInstanceNum

Description

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

Prototype

size_t GetInstanceNum() const

Parameters

None

Returns

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

Restrictions

None

Example

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