-
Notifications
You must be signed in to change notification settings - Fork 227
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
OVWeightUpdateCommand copies a constant #2277
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2277 +/- ##
========================================
Coverage 90.76% 90.76%
========================================
Files 486 486
Lines 43763 43764 +1
========================================
+ Hits 39722 39723 +1
Misses 4041 4041
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f107965
to
d401c3d
Compare
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.
Could you provide performance results?
57d79fa
to
6c79b84
Compare
I have used the Quantization Wall Time Before (NNCF develop): 401.24 sec |
6c79b84
to
c97f231
Compare
62166b0
to
7a1914a
Compare
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, fill the ticket (or create PR) with the migrating to the latest opset
.
I've filled the ticket. Ref: 125777 |
262b593
to
b55d4f5
Compare
Co-authored-by: Nikita Malinin <nikita.malinin@intel.com>
const_value = np.reshape(const_value, const_shape).astype(const_dtype) | ||
|
||
# TODO(andrey-churkin): Replace on opset13.constant() in a future release | ||
new_const_node = ov.op.Constant(const_value, shared_memory=True) |
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.
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.
I'm just adding a note that using ov.op.Constant
is not consistent with our current approach of using opset
from Python API.
Changes
get_const_value()
method. This method was initially implemented as a workaround in PR 1654, but it is no longer needed and can be replaced withconst_op.data
.const_op.get_data()
withconst_op.data
because theconst_op.get_data()
legacy method and.data
property should be used.shared_memory
parameter toTrue
during constant creation to avoid copying the constant.Reason for changes
const_od.get_data()
method copies constant.opset.constant(...)
.Related tickets
Ref: 122922
Tests
N/A