Comments (2)
Hi @jaggernaut007, are you referring to this line? If that's the case, the loss within the testing loop gives you a single scalar value per batch, and that's what you are accumulating in test_loss
. That's why you need to divide after the loop by the number of batches, num_batches
.
from tutorials.
@svekars unless I am wrong, I think we can close this issue.
from tutorials.
Related Issues (20)
- [BUG] - missing import in Reinforcement Learning (PPO) Tutorial
- Misleading example for per-sample gradient HOT 3
- Issues with se2seq tutorial (batch training)
- [BUG] - torchvision_tutorial.py fails with a RuntimeError
- 💡 [REQUEST] - Add a Timestamp to Every Tutorial
- Transformer tutorial multiplying with sqrt(d_model)
- [BUG] - issue::checkpoints are not saving the information and weights after few days. givinig different results. HOT 7
- A typo in the comments
- requires_grad=True for an input datapoint? HOT 1
- Performance Tuning Guide is very out of date HOT 3
- Test issue HOT 7
- [BUG] - Outdated CMakeLists.txt in cpp_export.rst HOT 1
- [BUG] - <Missing image file and imagenet class index file>
- Test the TEST 1 IGNORE tutorial
- Test the TEST 2 IGNORE tutorial
- Test the TEST 1 IGNORE tutorial
- Test the TEST 2 IGNORE tutorial
- Test the TEST 1 IGNORE tutorial
- Test the TEST 2 IGNORE tutorial
- ~PyTorch Docathon H1 2024!~
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutorials.