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

Method __init__

PATH/core/optimizers/adam_clip.py:66–73  ·  view source on GitHub ↗
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8,
                 weight_decay=1e-2, amsgrad=False, clip_norm=None, norm_type=2)

Source from the content-addressed store, hash-verified

64
65class AdamWWithClipDev(AdamW):
66 def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8,
67 weight_decay=1e-2, amsgrad=False, clip_norm=None, norm_type=2):
68 super(AdamWWithClipDev, self).__init__(params, lr, betas, eps, weight_decay, amsgrad)
69 self.clip_norm = clip_norm
70 self.norm_type = norm_type
71
72 self._split_param_groups = None
73 self.reset_split_param_groups()
74
75 def reset_split_param_groups(self):
76 if self.clip_norm is not None:

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected