File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/common/transformations/src/transformations/common_optimizations Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,14 @@ bool ov::pass::MOCTransformations::run_on_model(const std::shared_ptr<ov::Model>
164
164
REGISTER_PASS (manager, PushConstantToSubgraph)
165
165
REGISTER_PASS (manager, ConstantFolding)
166
166
REGISTER_PASS (manager, Validate)
167
- // the order is important
168
- REGISTER_PASS (manager, EinsumDecomposition, true )
167
+
168
+ // EinsumDecomposition should be called after ConstantFolding
169
+ // for better performance and memory usage.
170
+ // ConstantFolding creates constant inputs to Einsum operations,
171
+ // which EinsumDecomposition can then decompose more efficiently with
172
+ // reduced memory consumption.
173
+ // REGISTER_PASS(manager, EinsumDecomposition, true)
174
+
169
175
// FusedFilteringBoxesBySize transformation has the complex pattern
170
176
// which can be affected by further transformations. So we have to
171
177
// execute it at the beginning of the pipeline. Also, this pass resolves
You can’t perform that action at this time.
0 commit comments