MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / step

Method step

PATH/core/optimizers/adam_clip.py:29–34  ·  view source on GitHub ↗
(self, closure=None)

Source from the content-addressed store, hash-verified

27 self.norm_type = norm_type
28
29 def step(self, closure=None):
30
31 if self.max_norm is not None:
32 for group in self.param_groups:
33 clip_grad_norm_(group['params'], self.max_norm, self.norm_type)
34 super(AdamWWithClip, self).step(closure)
35
36
37# class AdamWWithClipDev(AdamW):

Callers

nothing calls this directly

Calls 2

clip_grad_norm_Function · 0.85
stepMethod · 0.45

Tested by

no test coverage detected