Skip to content

Commit

Permalink
limit only on cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
zyf654321 committed Sep 24, 2024
1 parent ffcc77f commit cb2e125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dipu/tests/python/unittests/test_adamw.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ def adamw_(self, dtype_):
),
)

@onlyOn("CUDA")
def test_adamw_fp16_(self):
self.adamw_(torch.float16)

@onlyOn("CUDA")
def test_adamw_fp32_(self):
self.adamw_(torch.float32)

Expand Down

0 comments on commit cb2e125

Please sign in to comment.