File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
src/onnx_ir/passes/common Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 66 "CheckerPass" ,
77 "ClearMetadataAndDocStringPass" ,
88 "CommonSubexpressionEliminationPass" ,
9+ "DeduplicateHashedInitializersPass" ,
910 "DeduplicateInitializersPass" ,
1011 "IdentityEliminationPass" ,
1112 "InlinePass" ,
3637 IdentityEliminationPass ,
3738)
3839from onnx_ir .passes .common .initializer_deduplication import (
40+ DeduplicateHashedInitializersPass ,
3941 DeduplicateInitializersPass ,
4042)
4143from onnx_ir .passes .common .inliner import InlinePass
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class IdentityEliminationPass(ir.passes.InPlacePass):
1919 """Pass for eliminating redundant Identity nodes.
2020
2121 This pass removes Identity nodes according to the following rules:
22+
2223 1. For any node of the form `y = Identity(x)`, where `y` is not an output
2324 of any graph, replace all uses of `y` with a use of `x`, and remove the node.
2425 2. If `y` is an output of a graph, and `x` is not an input of any graph,
You can’t perform that action at this time.
0 commit comments