PyTorch: Difference between revisions

183 bytes added ,  2 March 2020
no edit summary
No edit summary
Line 10: Line 10:


==Usage==
==Usage==
==Memory Usage==
Reducing memory usage
* Save loss using [https://pytorch.org/docs/stable/tensors.html#torch.Tensor.item <code>.item()</code>] which returns a standard Python number