Top "Pytorch" questions

PyTorch is a deep learning framework that implements a dynamic computational graph, which allows you to change the way your neural network behaves on the fly and capable of performing backward automatic differentiation.

PyTorch: How to change the learning rate of an optimizer at any given moment (no LR schedule)

Is it possible in PyTorch to change the learning rate of the optimizer in the middle of training dynamically (I …

python optimization neural-network deep-learning pytorch
What are transforms in PyTorch used for?

I am new with Pytorch and not very expert in CNN. I have done a successful classifier with the tutorial …

image input transformation pytorch
What does the parameter retain_graph mean in the Variable's backward() method?

I'm going through the neural transfer pytorch tutorial and am confused about the use of retain_variable(deprecated, now referred …

neural-network conv-neural-network backpropagation pytorch automatic-differentiation
What's the difference between "hidden" and "output" in PyTorch LSTM?

I'm having trouble understanding the documentation for PyTorch's LSTM module (and also RNN and GRU, which are similar). Regarding the …

deep-learning pytorch lstm recurrent-neural-network tensor
Pytorch: Can't call numpy() on Variable that requires grad. Use var.detach().numpy() instead

I have an error in my code which is not getting fixed any which way I try. The Error is …

python numpy pytorch
What does model.eval() do in pytorch?

I am using this code, and saw model.eval() in some cases. I understand it is supposed to allow me …

python machine-learning deep-learning pytorch
How can I generate and display a grid of images in PyTorch with plt.imshow and torchvision.utils.make_grid?

I am trying to understand how torchvision interacts with mathplotlib to produce a grid of images. It's easy to generate …

python matplotlib pytorch imshow torchvision
Can't install pytorch with pip on Windows

I'm trying to install Pytorch with Windows and I'm using the commands of the official site https://pytorch.org/get-started/…

python python-3.x pytorch python-3.7
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
How to convert a list or numpy array to a 1d torch tensor?

I have a list (or, a numpy array) of float values. I want to create a 1d torch tensor that …

torch pytorch