-
Notifications
You must be signed in to change notification settings - Fork 57
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
Implement aten::{all,any}.dims | feat(torchlib) #1084
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1084 +/- ##
==========================================
- Coverage 78.10% 77.98% -0.13%
==========================================
Files 115 115
Lines 14826 14860 +34
Branches 1574 1580 +6
==========================================
+ Hits 11580 11588 +8
- Misses 2875 2901 +26
Partials 371 371
|
Test Results 18 files ± 0 18 suites ±0 1h 18m 35s ⏱️ + 5m 14s For more details on these failures, see this check. Results for commit 0ccd9ad. ± Comparison against base commit a981b8a. ♻️ This comment has been updated with latest results. |
|
||
|
||
@torch_op("aten::any.dims") | ||
def aten_any_dims_empty_dim(self: TTensor, keepdims: bool) -> BOOL: |
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.
Looks like we still need the place holder for it when it is optional
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.
NVM. dims is an attribute. This is good.
|
||
|
||
@torch_op("aten::any.dims") | ||
def aten_any_dims_empty_dim(self: TTensor, keepdims: bool) -> BOOL: |
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.
nit:
Change 'empty' to 'no' to avoid confusion that users might think dims is an empty list/tuple where it is actually None.
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
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.
dims can be an empty list or None. They will mean the same thing. I made the changes nevertheless.
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.
Thanks!
Implement aten::{all,any}.dims according to pytorch/pytorch#110310
Tests will be enabled after the PyTorch PR is merged