Top "Autograd" questions

Autograd can automatically differentiate native Python and Numpy code and is also used by the deep learning framework PyTorch.

Pytorch - RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed

I keep running into this error: RuntimeError: Trying to backward through the graph a second time, but the buffers have …

python deep-learning pytorch recurrent-neural-network autograd
Autograd.grad() for Tensor in pytorch

I want to compute the gradient between two tensors in a net. The input X tensor (batch size x m) …

pytorch autograd
PyTorch autograd -- grad can be implicitly created only for scalar outputs

I am using the autograd tool in PyTorch, and have found myself in a situation where I need to access …

python pytorch autograd
pytorch custom layer "is not a Module subclass"

I am new to PyTorch, trying it out after using a different toolkit for a while. I would like understand …

torch pytorch autograd
Backward function in PyTorch

I have some question about pytorch's backward function I don't think I'm getting the right output : import numpy as np …

machine-learning pytorch gradient-descent autograd
Evaluating pytorch models: `with torch.no_grad` vs `model.eval()`

When I want to evaluate the performance of my model on the validation set, is it preferred to use: with …

machine-learning deep-learning pytorch autograd