-
Notifications
You must be signed in to change notification settings - Fork 106
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
Implemented Sort/Argsort Ops in PyTorch #897
Implemented Sort/Argsort Ops in PyTorch #897
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #897 +/- ##
=======================================
Coverage 81.24% 81.25%
=======================================
Files 170 171 +1
Lines 46920 46945 +25
Branches 11482 11484 +2
=======================================
+ Hits 38120 38144 +24
Misses 6600 6600
- Partials 2200 2201 +1
|
What happens with axis=None that introduces a reshape? |
I think it is this line. But I should rather remove that test and don't test for |
I see, you can test and mark it as xfail with pytest.mark.xfail |
tests/link/pytorch/test_sort.py
Outdated
@@ -7,17 +7,12 @@ | |||
from tests.link.pytorch.test_basic import compare_pytorch_and_py | |||
|
|||
|
|||
@pytest.mark.xfail(reason="Reshape not implemented") | |||
@pytest.mark.parametrize("axis", [0, 1, 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.
When only some of the parametrized conditions fail, you should use pytest.param
to mark that specifically as xfailing. The others are working and shouldn't be marked. There are some examples in the tests somewhere
a9e2343
to
cff4cf4
Compare
Description
SortOp
inPyTorch
ArgSortOp
inPyTorch
axis=None
throws an exception becauseReshape
is not yet implementedRelated Issue
Checklist
Type of change