-
Notifications
You must be signed in to change notification settings - Fork 739
Unittest function in test #744
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
|
Can you provide description of what value this PR brings? |
I want to separate this change with #727 and mention this difference in model test file when compare to other test files. It is for reference and it doesn't need to be merged. |
if so can you close it? |
|
Thanks for following up on comment and opening this @jimchen90 :) it'd be nice to understand the pros and cons of merging this or not, since we may want to apply this to all test files.
I'm ok to add it or not, but we should make an explicit decision so we can use that same decision moving forward :) @jimchen90 @mthrok thoughts? |
|
I am against adding the code for such a infinitesimal benefit.
Why do we want to increase the amount of code we have to maintain, which is not mission-critical, and we are not certain that it will be useful when there is a lot of alternative solutions, which is more powerful, such as simple |
Cool, I agree with (1) and (3). Let's not add it to files moving forward, and we can remove if __name__ == "__main__":
unittest.main()from existing files. If pytorch decides to go with a particular framework, we'll consider it at that time. Glad we documented our decision on this :) |
This is related to #727.
Compared to this pull request and other test files (e.g. here), I remove the
unittest.mainfunction in the end andimport unittestfunction in the first line in #727 .