GetInstanceStart

Description

Obtains the start index of an IR input in the actual inputs of an operator.

Prototype

size_t GetInstanceStart() const

Parameters

None

Returns

Start index of an IR input in the actual inputs of an operator

Restrictions

None

Example

AnchorInstanceInfo anchor_0(0, 10); // The first input defined by the IR is a dynamic input. The actual number of dynamic inputs is 10.
AnchorInstanceInfo anchor_1(10, 1); // The second input defined by the IR is a required input, and the actual number of required inputs must be 1, with this input being the 10th in the list of actual inputs.
auto start_of_anchor_1 = anchor_1.GetInstanceStart(); // start_of_anchor_1 = 10