We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c69c5a1 commit cc392bcCopy full SHA for cc392bc
pytorch_lightning/plugins/precision/precision_plugin.py
@@ -121,6 +121,9 @@ def clip_gradients(
121
if clip_val <= 0:
122
return
123
124
+ assert gradient_clip_algorithm is GradClipAlgorithmType.VALUE
125
+ # gradient_clip_algorithm = GradClipAlgorithmType.VALUE
126
+
127
clip_grad_func = self.clip_grad_funcs[gradient_clip_algorithm]
128
clip_grad_func(optimizer, clip_val) # type: ignore
129
0 commit comments