(self, closure=None)
| 12 | self.norm_type = norm_type |
| 13 | |
| 14 | def step(self, closure=None): |
| 15 | if self.max_norm is not None: |
| 16 | for group in self.param_groups: |
| 17 | clip_grad_norm_(group['params'], self.max_norm, self.norm_type) |
| 18 | super(AdamWithClip, self).step(closure) |
| 19 | |
| 20 | |
| 21 | class AdamWWithClip(AdamW): |
no test coverage detected