Commit ba632fe
Minor fix to make adafactor work for >2d conv kernels (facebookresearch#1122)
Summary:
missing .unsqueeze(-1) in line 124,
without this change we'll encounter runtime error for >2d convolutional kernels, with this fix, we're applying adafactor's 2d logic to the two final dimensions.
Pull Request resolved: facebookresearch#1122
Differential Revision: D17431662
Pulled By: myleott
fbshipit-source-id: e7435e77270a9252f75f01b2457ef0048f5bcf361 parent 48902f0 commit ba632fe
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
0 commit comments