GetOutputInstanceInfo
Description
Obtains the corresponding instantiated object based on the output index in the operator IR prototype.
Prototype
const AnchorInstanceInfo *GetOutputInstanceInfo(const size_t ir_index) const
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ir_index |
Input |
Output index in the operator IR prototype definition, starting from 0. |
Returns
Address of the instantiated object of the const type
Restrictions
None
Example
for (size_t i = 0; i < ir_outputs.size(); ++i) {
auto ins_info = compute_node_info.GetOutputInstanceInfo(i);
...
}
Parent topic: ComputeNodeInfo