Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meshcapade/difflocks
/ _check_optimizer
Function
_check_optimizer
schedulers/pytorch_warmup/base.py:8–11 ·
view source on GitHub ↗
(optimizer)
Source
from the content-addressed store, hash-verified
6
7
8
def
_check_optimizer(optimizer):
9
if
not isinstance(optimizer, Optimizer):
10
raise
TypeError(
'{} ({}) is not an Optimizer.'
.format(
11
optimizer, type(optimizer).__name__))
12
13
14
class
BaseWarmup(object):
Callers
5
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
Calls
1
format
Method · 0.80
Tested by
no test coverage detected