MCPcopy Create free account
hub / github.com/CGuangyan-BIT/PointGPT / build_lambda_sche

Function build_lambda_sche

segmentation/misc.py:27–33  ·  view source on GitHub ↗
(opti, config)

Source from the content-addressed store, hash-verified

25
26
27def build_lambda_sche(opti, config):
28 if config.get('decay_step') is not None:
29 lr_lbmd = lambda e: max(config.lr_decay ** (e / config.decay_step), config.lowest_decay)
30 scheduler = torch.optim.lr_scheduler.LambdaLR(opti, lr_lbmd)
31 else:
32 raise NotImplementedError()
33 return scheduler
34
35
36def build_lambda_bnsche(model, config):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected