easyStudy question · answer published in PyTorch interview questions, so no pointsdeep-learningpytorch
Logging loss without leaking memory
A training loop does total += loss each step to track the epoch loss, and GPU memory keeps rising. What is the usual fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Dropout after eval()Machine Learning Engineer
- Parameters in nn.Linear(10, 5)Machine Learning Engineer
- Why sigmoid slows deep trainingMachine Learning Engineer
- Range of tanhMachine Learning Engineer
- Cross-entropy loss by handMachine Learning Engineer
- Telling autograd to track a tensorMachine Learning Engineer
- Why wrap inference in no_gradMachine Learning Engineer
- Feeding a single image to a CNNMachine Learning Engineer