GetInstanceStart
Function Usage
Obtains the start index of an IR input in the actual inputs of an operator.
Prototype
1 | size_t GetInstanceStart() const |
Parameters
None
Returns
Start index of an IR input in the actual inputs of an operator
Constraints
None
Examples
1 2 3 | AnchorInstanceInfo anchor_0(0, 10); // The first input defined by the IR prototype is a dynamic input. The actual number of dynamic inputs is 10. AnchorInstanceInfo anchor_1(10, 1); // The second input defined by the IR prototype 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 |
Parent topic: AnchorInstanceInfo