Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

update a variable in torch

w1.data -= learning_rate * w1.grad.data
w2.data -= learning_rate * w2.grad.data
Source by discuss.pytorch.org #
 
PREVIOUS NEXT
Tagged: #update #variable #torch
ADD COMMENT
Topic
Name
8+3 =