-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OVWeightUpdateCommand copies a constant (#2277)
### Changes - Update an implementation of `get_const_value()` method. This method was initially implemented as a workaround in [PR 1654](#1654), but it is no longer needed and can be replaced with `const_op.data`. - Replace `const_op.get_data()` with `const_op.data` because the `const_op.get_data()` legacy method and `.data` property should be used. - Set the `shared_memory` parameter to `True` during constant creation to avoid copying the constant. ### Reason for changes - The `const_od.get_data()` method copies constant. - Do not copy the constant value during constant creation in `opset.constant(...)`. ### Related tickets Ref: 122922 ### Tests N/A --------- Co-authored-by: Nikita Malinin <[email protected]>
- Loading branch information
1 parent
5eee3bc
commit 9479779
Showing
4 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters