GetInstanceNum

Function Usage

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

Prototype

1
size_t GetInstanceNum() const

Parameters

None

Returns

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

Constraints

None

Examples

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