mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
To be technically correct, need to check the in-place _ ver of op
This commit is contained in:
parent
b0a121bed0
commit
9b27f84876
@ -143,7 +143,7 @@ def lion(
|
||||
if foreach is None:
|
||||
try:
|
||||
# cannot do foreach if this overload doesn't exist when caution enabled
|
||||
foreach = not caution or 'Scalar' in torch.ops.aten._foreach_maximum.overloads()
|
||||
foreach = not caution or 'Scalar' in torch.ops.aten._foreach_maximum_.overloads()
|
||||
except:
|
||||
foreach = False
|
||||
|
||||
|
@ -171,7 +171,7 @@ def nadamw(
|
||||
if foreach is None:
|
||||
try:
|
||||
# cannot do foreach if this overload doesn't exist when caution enabled
|
||||
foreach = not caution or 'Scalar' in torch.ops.aten._foreach_maximum.overloads()
|
||||
foreach = not caution or 'Scalar' in torch.ops.aten._foreach_maximum_.overloads()
|
||||
except:
|
||||
foreach = False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user