yegane
(Y E G A N E H)
January 7, 2019, 1:27pm
1
Hi,
I have written a post in stackoverflow regarding one of the examples in pytorch toturial:
python, pytorch
and the tutorial is in here:
https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html
Could anybody, please explain how optim, net and criterion are related together. It only makes sense for me if the backward, and optimization happens under the Net class.
yunusemre
(Yunusemre)
January 7, 2019, 7:03pm
2
This post should help you. :
Hi.
I am pretty new to Pytorch and keep surprised with the performance of Pytorch
I have followed tutorials and there’s one thing that is not clear.
How the optimizer.step() and loss.backward() related?
Does optimzer.step() function optimize based on the closest loss.backward() function?
When I check the loss calculated by the loss function, it is just a Tensor and seems it isn’t related with the optimizer.
Here’s my questions:
(1) Does optimzer.step() function optimize bas…
1 Like