Skip to content

Commit da2eb31

Browse files
jvandebonpytorchmergebot
authored andcommitted
[MTIA][PyTorch] Add mtia as native device for PyTorch tests (pytorch#167089)
Summary: Add MTIA as a native device type in PyTorch. Test Plan: CI Reviewed By: PatriceVignola Differential Revision: D80111801 Pull Request resolved: pytorch#167089 Approved by: https://github.com/andyanwang, https://github.com/nautsimon, https://github.com/albanD
1 parent 2005b5f commit da2eb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/testing/_internal/common_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def maybe_load_json(filename):
333333
if os.getenv("DISABLED_TESTS_FILE", ""):
334334
disabled_tests_dict = maybe_load_json(os.getenv("DISABLED_TESTS_FILE", ""))
335335

336-
NATIVE_DEVICES = ('cpu', 'cuda', 'xpu', 'meta', 'mps', torch._C._get_privateuse1_backend_name())
336+
NATIVE_DEVICES = ('cpu', 'cuda', 'xpu', 'meta', 'mps', 'mtia', torch._C._get_privateuse1_backend_name())
337337

338338
# used for managing devices testing for torch profiler UTs
339339
# for now cpu, cuda and xpu are added for testing torch profiler UTs

0 commit comments

Comments
 (0)