-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix TPU parsing and TPU tests #2094
Conversation
Hello @lezwon! Thanks for updating this PR.
Comment last updated at 2020-06-23 15:34:18 UTC |
Codecov Report
@@ Coverage Diff @@
## master #2094 +/- ##
======================================
Coverage 88% 88%
======================================
Files 70 70
Lines 5501 5516 +15
======================================
+ Hits 4834 4849 +15
Misses 667 667 |
what's the best way to test this? should we make a colab and run the tests from there manually? |
@awaelchli yea. I tested this on Kaggle by running the tests manually. Notebook: https://www.kaggle.com/lezwon/pytorch-lightning-tpu-tests |
Nice use of test parameterization! ❤️ In the tests that just run the trainer I would at least add a test that the model is on the correct device, otherwise the test would pass if the model runs on cpu. trainer = Trainer(feature=True)
result = trainer.fit()
assert result Because that only tests that the feature does not throw an error, but it does not test that the feature actually leads to the desired side effects. |
Gotcha. Thanks for the review. I'll add the suggested changes. 😊 |
this will help us very much with checking any TOU edit and increase code coverage!
just need to add TPU machine to the test space @williamFalcon @luiscape cc: @PyTorchLightning/core-contributors |
@Borda I've fixed the issue. It had to do when parsing CLI arguments. I will try to add tests for it. |
added suggesstion Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
This pull request is now in conflict... :( |
done! |
Before submitting
What does this PR do?
Fixes #1246
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃