Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytorch optimizer change learning rate

# param_groups is an array of dicts
# usually len of param_groups is 1 and you can access lr as follow
optimizer.param_groups[0]['lr'] = 1e-3
 
PREVIOUS NEXT
Tagged: #pytorch #optimizer #change #learning #rate
ADD COMMENT
Topic
Name
6+8 =