Commit b34da0d
return total grad norm in torchrec grad clipping (meta-pytorch#2507)
Summary:
Pull Request resolved: meta-pytorch#2507
this is to keep consistent with torch.nn.utils.clip_grad_norm_
Reviewed By: awgu
Differential Revision: D64712277
fbshipit-source-id: 689e02bd21dc37568c3347d5b0833c573f042c151 parent 1a57ce1 commit b34da0d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
0 commit comments