-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Clean up Assert Statements. #2758
Comments
Hi @oke-aditya I think we don't have many more asserts left in the testing code, so a single PR should be fine (as long as there are not 100s of occurrences, if that's the case it's better to split in multiple PRs). We currently work on both pytest and unittest, and that has traditionally been the case (except for maybe latest tests from @pmeier in https://github.com/pytorch/vision/blob/master/test/test_datasets_download.py ), and I would propose we keep it this way for now. Good idea about the CONTRIBUTING.md mentioning the testing decision. Once we finish this release (which is coming very soon) we will get back to the CONTRIBUTING.md file. |
The only thing IMO, if we "force" a specific style, it should be |
@pmeier in torchvision we will follow whatever PyTorch uses, and PyTorch currently uses But your arguments are valid, and would be worth discussing more broadly within the other domain libraries such as torchtext / torchaudio. cc @cpuhrsch @mthrok @vincentqb @zhangguanheng66 for thoughts |
For torchtext, we use |
@cpuhrsch once told me that PyTorch's |
Since this discussion "escalated" beyond |
(same for torchaudio) |
I think we would like to use We have been manually implementing tensor comparison across our transforms via |
Is this ticket still needed? cc @NicolasHug |
Nope. Since we migrated to |
thanks for the ping, yes we can close it. We now use |
2nd Follow-up of #2710.
As we discussed there, we use
Unittest
framework and notpytest
though tests run viapytest
.We have some places in files test_onnx.py
and test_ops.py (my bad tests as well).
Most were cleaned previously #1483
I guess I can clean then up, should I make a single PR or separate them one file at a time?
Also do let me know if there are additional places.
Also probably add this Uninttest framework tests a part of
contributing.md
file #2651 #2663 . It would probably avoid thispytest
vsUnittest
confusion.The text was updated successfully, but these errors were encountered: