RemoveUnusedNodesPass¶

class onnx_ir.passes.common.RemoveUnusedNodesPass[source]¶

Pass for removing unused nodes and initializers (dead code elimination).

This pass does not modify the model signature (inputs and outputs). It ensures that unused nodes and initializers are removed while preserving the original contract of the model.

call(model)[source]¶

The main entry point for the pass.

Parameters:

model (Model)

Return type:

PassResult