-
Notifications
You must be signed in to change notification settings - Fork 239
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
Patch missed magic functions #2298
Patch missed magic functions #2298
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2298 +/- ##
========================================
Coverage 90.76% 90.77%
========================================
Files 486 487 +1
Lines 43783 43806 +23
========================================
+ Hits 39741 39764 +23
Misses 4042 4042
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -122,35 +122,51 @@ class FunctionsToPatchWithoutTracing: | |||
class MagicFunctionsToPatch: | |||
MAGIC_FUNCTIONS_TO_PATCH = { | |||
NamespaceTarget.TORCH_TENSOR: [ | |||
"__abs__", |
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.
Metatypes should be defined for all new operations and added support in NNCF algorithms.
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.
Added
@AlexanderDokuchaev, is it possible to add some unit tests for this change? |
2d62878
to
2c61a3f
Compare
6b6ac7d
to
7828c94
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.
👍
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.
LGTM
Changes
PTNegativeMetatype
for-tensor
andtensor.neg()
operations.Related tickets
124852
Tests
test_patch_magic_functions
test_op_for_patch_magic_functions
models_hub_test
91 failed, 602 passed
, after83 failed, 610 passed