coreai_opt.inspection.InputEdge¶
- class coreai_opt.inspection.InputEdge(op, output_idx)[source]¶
Bases:
objectOne input edge into an op, pairing the producing op with its output slot.
Used as the element type of
OpInfo.inputs. Delegation properties forward the most-accessedOpInfoattributes so that code iteratingop.inputsdoes not need to go through.opfor routine checks.- Parameters:
op (OpInfo)
output_idx (int | None)
- output_idx¶
Which output slot of
opthis tensor came from, orNonefor synthetic ops (registered states, ephemeral/untracked tensors) that have no meaningful output slot.- Type:
int | None
- property is_state: bool¶
- property module_stack: tuple[ModuleContext, ...]¶
- property op_name: str¶
- property op_type: str | None¶
- output_idx: int | None¶