-
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
Pure package & base tests #2418
Conversation
great idea! this should really help prevent bugs like #2410 sneaking in! |
Codecov Report
@@ Coverage Diff @@
## master #2418 +/- ##
======================================
- Coverage 89% 89% -0%
======================================
Files 69 69
Lines 5477 5475 -2
======================================
- Hits 4857 4855 -2
Misses 620 620 |
@awaelchli any idea why Windows does not have any new PyTorch?
on the other hand, complete testing works fine... maybe because it is cached? EDIT: resolved :] |
this seems like a Win issue with PT...
EDIT: resolved with installing CPU versions... |
This pull request is now in conflict... :( |
@awaelchli @williamFalcon mind check the final version? |
self.in_dim = in_dim | ||
self.out_dim = out_dim |
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.
can we not leave it here?
save_hyperparameters will only save in_dim and out_dim, right?
the user should still be able to assign whatever they want to self.
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.
yes, he does but we do not want to recommend this practice, right? @williamFalcon
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.
people can do whichever but it’s better to use the save call for hparams tracking
>>> import torch | ||
>>> from torch.nn import functional as F | ||
>>> from torch.utils.data import Dataset, DataLoader |
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.
if you want, you can move these to the top of the file, they don't necessarily need to be inside the doctest.
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.
but they are not called outside test flake8 may complain about unused impprts
it seems since you removed circle CI, we cannot preview docs anymore directly in the CI artifacts. Maybe we can add it back later. |
well we are exporting build-docs with GH action but it is zip format, we may check if there is a way to browse it online or add CircleCI just for the docs? not sure how many people really used it... @PyTorchLightning/core-contributors? EDIT: Just for the record CircleCI was dropped in #2378 #2412 |
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
What does this PR do?
Add test for the package without extras
TODO
Before submitting
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 🙃