DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+3 =
Submit