-
Notifications
You must be signed in to change notification settings - Fork 25.7k
adding test_sparse_csr to run_test #58666
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
Conversation
💊 CI failures summary and remediationsAs of commit 52c5d87 (more details on the Dr. CI page):
3 failures not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
77e5b7e to
f1d336f
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.
crow_indices are all zero from this point forward in the original expect file. not sure if there's a copy/paste issue. plz review.
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.
Minor comments about the tests, just one skip test is needed test_mkl_matvec_warnings. Actually before solving this issue, this one #58757 , related to CSR matmul bug, should be solved.
test/test_sparse_csr.py
Outdated
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 think this skip test is not needed here.
test/test_sparse_csr.py
Outdated
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.
this skip test is the only one needed due to is the only one expecting and MKL related warning
test/test_sparse_csr.py
Outdated
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.
This test was wrong from the beginning. It uses genSparseCSRTensor which generates a random csr tensor however this test compares with an expected and static string.
See :
pytorch/test/test_sparse_csr.py
Line 223 in f4320cc
| def test_sparse_csr_print(self, device): |
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.
should we remove/skip this for now?
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 would suggest to generate csr tensor in this way:
pytorch/test/test_sparse_csr.py
Line 242 in f4320cc
| x = torch.sparse_csr_tensor(torch.tensor([0, 2, 4], dtype=index_dtype), |
So when CUDA support is ready for merge it will not generate to much conflicts
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.
test/test_sparse_csr.py
Outdated
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.
should we remove/skip this for now?
Agree with the idea to skip for now and comment with a TODO with the issue number attached here #58757. |
f1d336f to
84cae03
Compare
|
@walterddr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
84cae03 to
52c5d87
Compare
|
@walterddr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@walterddr merged this pull request in a700204. |
fixes #58632.
Added several skips that relates to test assert and MKL. Will address them in separate PR.