We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

MutableInputInstanceInfo

Function Description

Obtains the corresponding instantiated object based on the input index in the operator IR prototype.

Function Prototype

Collapse
Word wrap
Dark theme
Copy code
  1. AnchorInstanceInfo *MutableInputInstanceInfo(const size_t ir_index)

Parameters

Expand
Parameter Input/Output Description
ir_index Input Input index in the operator IR prototype definition, starting from 0.

Return Value

Address of the instantiated object. The returned object is not const.

Restrictions

None

Calling Example

Collapse
Word wrap
Dark theme
Copy code
  1. for (size_t i = 0; i < ir_inputs.size(); ++i) {
  2. auto ins_info = compute_node_info.MutableInputInstanceInfo(i);
  3. // ...
  4. }
Search in Guides
Enter a keyword.