MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / __call__

Method __call__

optimizer.py:38–39  ·  view source on GitHub ↗
(self, optimizer)

Source from the content-addressed store, hash-verified

36 self.warmup_epoch = warmup_epoch
37
38 def __call__(self, optimizer):
39 return lr_scheduler.LambdaLR(optimizer, self.lambda_func, self.last_epoch)
40
41 def lambda_func(self, current_step):
42 if current_step < self.warmup_epoch:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected