CLANG -> CPU (#9189)

This commit is contained in:
chenyu
2025-02-20 18:03:09 -05:00
committed by GitHub
parent f986e12f91
commit 2e7c2780a9
51 changed files with 149 additions and 147 deletions

View File

@@ -23,10 +23,10 @@ def multidevice_test(fxn):
class TestExample(unittest.TestCase):
@multidevice_test
def test_convert_to_clang(self, device):
def test_convert_to_cpu(self, device):
a = Tensor([[1,2],[3,4]], device=device)
assert a.numpy().shape == (2,2)
b = a.to("CLANG")
b = a.to("CPU")
assert b.numpy().shape == (2,2)
@multidevice_test