We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 984700d commit a4b0abaCopy full SHA for a4b0aba
regression/main.py
@@ -57,7 +57,7 @@ def get_batch(batch_size=32):
57
58
# Apply gradients
59
for param in fc.parameters():
60
- param.add_(-0.1 * param.grad)
+ param.data.add_(-0.1 * param.grad)
61
62
# Stop criterion
63
if loss < 1e-3:
0 commit comments