Skip to content

Commit

Permalink
fix the issue PR Taeung#799 left (Taeung#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
YYStreet authored May 29, 2020
1 parent 984700d commit a4b0aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regression/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_batch(batch_size=32):

# Apply gradients
for param in fc.parameters():
param.add_(-0.1 * param.grad)
param.data.add_(-0.1 * param.grad)

# Stop criterion
if loss < 1e-3:
Expand Down

0 comments on commit a4b0aba

Please sign in to comment.