-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Basic examples fixes #5912
Basic examples fixes #5912
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5912 +/- ##
========================================
- Coverage 90% 31% -59%
========================================
Files 170 170
Lines 11784 11663 -121
========================================
- Hits 10664 3661 -7003
- Misses 1120 8002 +6882 |
@ddrevicky thank you for sending your PR, just a minor issue coming from our side... we have swapped branches regarding upcoming feat 1.2, mind rebase on actual |
b3e5ca7
to
e026c3c
Compare
Yes. That can be done with no issues |
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.
LGTM !
z = self.encoder(x) | ||
x_hat = self.decoder(z) | ||
loss = F.mse_loss(x_hat, x) | ||
self.log('valid_loss', loss, on_step=True) |
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.
There is usually no need to log on step for validation :)
What does this PR do?
basic_examples/autoencoder.py
DATASET_PATHS
variable for storing downloaded datasets for examples in files where it was not usedRandom question
When defining a validation/test step could the following code be used? Or does calling training_step undesirably modify the model weights + other internal stuff?
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃