Skip to content

Refactor tensor initialization check for external weights and fixed lint issues#436

Closed
jatinwadhwa921 wants to merge 22 commits intoovep-develop-lnl-1.2from
jatin/external_weights
Closed

Refactor tensor initialization check for external weights and fixed lint issues#436
jatinwadhwa921 wants to merge 22 commits intoovep-develop-lnl-1.2from
jatin/external_weights

Conversation

@jatinwadhwa921
Copy link

Refactor tensor initialization check for external weights and fixed lint issues

saurabhkale17 and others added 21 commits August 3, 2024 23:24
fix handling of multiple QuantizeLinear nodes
* Update onnx_ctx_model_helper.cc

Keep "attr_0" "attr_1" etc inside a scope so that these unique pointers get deleted after their use is over
Also declare "node_attributes" global to the new scope (within the function)

* Optimizations to reduce memory used during compilation

* Fix for reusing the serialized compiled blob to proto model

* EpCtx export code refactoring

* Fix from Ankit to move memory during ONNX Graph creation

* Localise the OV IR model in memory

* Apply lint changes

---------

Co-authored-by: Vishnudas Thaniel S <vishnudas.thaniel.s@intel.com>
Co-authored-by: Javier E. Martinez <javier.e.martinez@intel.com>
Updated the Version of OV to 2024.3
update: Enable C++ 20 Standard for the build
Upgrade Openvino version to 2024.3.0
Fix OVEP execution failure with dynamic shaped models
@ankitm3k
Copy link

LGTM

Copy link

@preetha-intel preetha-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing this variable across call stack might be difficult to trace in long term. Can you explore the ng_required_initialisers in capability.cc or data_ops.cc

@jatinwadhwa921
Copy link
Author

Passing this variable across call stack might be difficult to trace in long term. Can you explore the ng_required_initialisers in capability.cc or data_ops.cc

External weights can be associated with any initializer in the ONNX model, so we can miss the initializer if we are just traversing the nodes which are not supported as ng_required_initilisers points to the nodes which are not supported, so i believe we should go ahead with my method for now

@preetha-intel
Copy link

LGTM

@preetha-intel
Copy link

@jatinwadhwa921 Rebase with latest changes.

@preetha-intel
Copy link

PR #464 is merged . Closing this as its no longer relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants