Skip to content

Commit

Permalink
Extend TorchVision smoke tests to MPS (#7365)
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet authored Mar 1, 2023
1 parent 120e7af commit feda8b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def main() -> None:
smoke_test_torchvision_resnet50_classify()
if torch.cuda.is_available():
smoke_test_torchvision_resnet50_classify("cuda")
if torch.backends.mps.is_available():
smoke_test_torchvision_resnet50_classify("mps")


if __name__ == "__main__":
Expand Down

0 comments on commit feda8b7

Please sign in to comment.