Skip to content

Commit

Permalink
skip test_torch_adamw_equal for invalid parameter combinations
Browse files Browse the repository at this point in the history
Change-Id: Ic3867ed78a636e88b884f304b68e897650a47ddc
  • Loading branch information
BacharL committed May 13, 2024
1 parent cbef0bf commit 23625cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/ops/adam/test_cpu_adam.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def test_fused_adam_equal(self, dtype, model_size):

def test_torch_adamw_equal(self, dtype, model_size):
if get_accelerator().is_available():
if dtype == torch.half:
pytest.skip("torch.optim.AdamW with half precision inf/nan output.")
if ("amd" in pytest.cpu_vendor) and (dtype == torch.half):
pytest.skip("cpu-adam with half precision not supported on AMD CPUs")
ref_param_device = get_accelerator().device_name()
Expand Down

0 comments on commit 23625cf

Please sign in to comment.