Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ get_lr
Function
get_lr
diff2flow/lr_schedulers.py:121–123 ·
view source on GitHub ↗
(optimizer)
Source
from the content-addressed store, hash-verified
119
import
matplotlib.pyplot
as
plt
120
121
def
get_lr(optimizer):
122
for
param_group in optimizer.param_groups:
123
return
param_group[
'lr'
]
124
125
net = nn.Linear(10, 10)
126
opt = torch.optim.Adam(net.parameters(), lr=3e-5)
Callers
1
lr_schedulers.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected