LiftSubgraphInitializersToMainGraphPass¶
- class onnx_ir.passes.common.LiftSubgraphInitializersToMainGraphPass[source]¶
Lift subgraph initializers to main graph.
This pass lifts the initializers of a subgraph to the main graph. It is used to ensure that the initializers are available in the main graph for further processing or optimization.
Initializers that are also graph inputs will not be lifted.
Changed in version 0.2.1: Lifted initializers will be renamed if necessary to avoid name collisions with existing initializers, node outputs, or graph inputs in the main graph.