1717
1818All contributions by Facebook:
1919Copyright (c) 2016 Facebook Inc.
20-
20+
2121All contributions by Google:
2222Copyright (c) 2015 Google Inc.
2323All rights reserved.
24-
24+
2525All contributions by Yangqing Jia:
2626Copyright (c) 2015 Yangqing Jia
2727All rights reserved.
28-
28+
2929All contributions from Caffe:
3030Copyright(c) 2013, 2014, 2015, the respective contributors
3131All rights reserved.
32-
32+
3333All other contributions:
3434Copyright(c) 2015, 2016 the respective contributors
3535All rights reserved.
36-
36+
3737Caffe2 uses a copyright model similar to Caffe: each contributor holds
3838copyright over their contributions to Caffe2. The project versioning records
3939all such contribution and copyright details. If a contributor wants to further
4949from functools import wraps
5050import unittest
5151import torch
52- import _torch_ipex as ipex
52+ import intel_pytorch_extension as ipex
5353import copy
5454from common_utils import TestCase , TEST_WITH_ROCM , TEST_MKL , \
5555 skipCUDANonDefaultStreamIf
@@ -254,15 +254,15 @@ class CPUTestBase(DeviceTypeTestBase):
254254 device_type = 'cpu'
255255
256256class DPCPPTestBase (DeviceTypeTestBase ):
257- device_type = 'dpcpp'
257+ device_type = ipex . DEVICE
258258
259259 @classmethod
260260 def get_primary_device (cls ):
261261 return cls .primary_device
262262
263263 @classmethod
264264 def get_all_devices (cls ):
265- return ['dpcpp' ]
265+ return [ipex . DEVICE ]
266266
267267 # Returns the dtypes the test has requested.
268268 # Prefers device-specific dtype specifications over generic ones.
@@ -276,7 +276,7 @@ def _get_dtypes(cls, test):
276276
277277 @classmethod
278278 def setUpClass (cls ):
279- cls .primary_device = 'dpcpp'
279+ cls .primary_device = ipex . DEVICE
280280
281281class CUDATestBase (DeviceTypeTestBase ):
282282 device_type = 'cuda'
0 commit comments