MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / step

Method step

utils/general_utils.py:233–240  ·  view source on GitHub ↗
(self, epoch=None)

Source from the content-addressed store, hash-verified

231 return [wd for _ in self.optimizer.param_groups]
232
233 def step(self, epoch=None):
234 # 先让父类更新 last_epoch
235 self._step_count += 1
236 # super().step(epoch)
237 # 再把新的 weight_decay 写到 optimizer
238 new_wd = self.get_lr()
239 for group, wd in zip(self.optimizer.param_groups, new_wd):
240 group['weight_decay'] = wd

Callers

nothing calls this directly

Calls 1

get_lrMethod · 0.95

Tested by

no test coverage detected