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

Function build_lambda_bnsche

segmentation/misc.py:36–42  ·  view source on GitHub ↗
(model, config)

Source from the content-addressed store, hash-verified

34
35
36def build_lambda_bnsche(model, config):
37 if config.get('decay_step') is not None:
38 bnm_lmbd = lambda e: max(config.bn_momentum * config.bn_decay ** (e / config.decay_step), config.lowest_decay)
39 bnm_scheduler = BNMomentumScheduler(model, bnm_lmbd)
40 else:
41 raise NotImplementedError()
42 return bnm_scheduler
43
44
45def set_random_seed(seed, deterministic=False):

Callers

nothing calls this directly

Calls 2

BNMomentumSchedulerClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected