MCPcopy 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
8def _check_optimizer(optimizer):
9 if not isinstance(optimizer, Optimizer):
10 raise TypeError('{} ({}) is not an Optimizer.'.format(
11 optimizer, type(optimizer).__name__))
12
13
14class 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

formatMethod · 0.80

Tested by

no test coverage detected