File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def lion(
143143 if foreach is None :
144144 try :
145145 # 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 ()
147147 except :
148148 foreach = False
149149
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def nadamw(
171171 if foreach is None :
172172 try :
173173 # 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 ()
175175 except :
176176 foreach = False
177177
You can’t perform that action at this time.
0 commit comments