-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[Performance] Solve high memory usage issue during model compilation using OpenVINO backend on Keras 3 #31482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
86d7685
126b77d
4628d6f
569ea46
f1fef2e
f5dd8f1
cebca9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,6 +90,7 @@ | |
| #include "transformations/op_conversions/convert_scatter_elements_to_scatter.hpp" | ||
| #include "transformations/op_conversions/convert_subtract.hpp" | ||
| #include "transformations/op_conversions/convert_ti_to_sequences.hpp" | ||
| #include "transformations/op_conversions/einsum_decomposition.hpp" | ||
| #include "transformations/resolve_names_collisions.hpp" | ||
| #include "transformations/smart_reshape/lstm_states_broadcast.hpp" | ||
| #include "transformations/smart_reshape/matmul_sr.hpp" | ||
|
|
@@ -163,6 +164,11 @@ bool ov::pass::MOCTransformations::run_on_model(const std::shared_ptr<ov::Model> | |
| REGISTER_PASS(manager, PushConstantToSubgraph) | ||
| REGISTER_PASS(manager, ConstantFolding) | ||
| REGISTER_PASS(manager, Validate) | ||
| // the order is important | ||
| const char* enable_einsum = std::getenv("OV_ENABLE_EINSUM_DECOMPOSITION"); | ||
| if (enable_einsum) { | ||
| REGISTER_PASS(manager, EinsumDecomposition) | ||
|
||
| } | ||
|
|
||
| // FusedFilteringBoxesBySize transformation has the complex pattern | ||
| // which can be affected by further transformations. So we have to | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a better comment before which transformation it should be called
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!