We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf140b commit 9cce6c6Copy full SHA for 9cce6c6
tutorials/01-basics/feedforward_neural_network/main-gpu.py
@@ -57,7 +57,7 @@ def forward(self, x):
57
for epoch in range(num_epochs):
58
for i, (images, labels) in enumerate(train_loader):
59
# Convert torch tensor to Variable
60
- images = Variable(images.view(-1, 28*28).cuda(), requires_grad=True)
+ images = Variable(images.view(-1, 28*28).cuda())
61
labels = Variable(labels.cuda())
62
63
# Forward + Backward + Optimize
0 commit comments