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

Function build_lambda_bnsche

utils/misc.py:34–40  ·  view source on GitHub ↗
(model, config)

Source from the content-addressed store, hash-verified

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

Callers 1

build_opti_scheFunction · 0.50

Calls 2

BNMomentumSchedulerClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected