Skip to content

Commit

Permalink
Test ResNet on MPS (pytorch#1176)
Browse files Browse the repository at this point in the history
After pytorch/pytorch#86954 is fixed, we should be able to test resnet on MPS
  • Loading branch information
malfet authored Oct 26, 2022
1 parent 95dbc19 commit efa1bc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/smoke_test/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,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__":
main()

0 comments on commit efa1bc7

Please sign in to comment.