File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def lion(
143
143
if foreach is None :
144
144
try :
145
145
# cannot do foreach if this overload doesn't exist when caution enabled
146
- foreach = not caution or 'Scalar' in torch .ops .aten ._foreach_maximum .overloads ()
146
+ foreach = not caution or 'Scalar' in torch .ops .aten ._foreach_maximum_ .overloads ()
147
147
except :
148
148
foreach = False
149
149
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def nadamw(
171
171
if foreach is None :
172
172
try :
173
173
# cannot do foreach if this overload doesn't exist when caution enabled
174
- foreach = not caution or 'Scalar' in torch .ops .aten ._foreach_maximum .overloads ()
174
+ foreach = not caution or 'Scalar' in torch .ops .aten ._foreach_maximum_ .overloads ()
175
175
except :
176
176
foreach = False
177
177
You can’t perform that action at this time.
0 commit comments