(self)
| 112 | X.shard_(devices_3, 0) |
| 113 | |
| 114 | def test_tensor_from_multi(self): |
| 115 | X = Tensor([1, 2], dtype=dtypes.int).shard_(devices_2, 0) |
| 116 | Y = Tensor(X.uop) |
| 117 | self.assertEqual(Y.device, devices_2) |
| 118 | np.testing.assert_equal(X.numpy(), Y.numpy()) |
| 119 | |
| 120 | with self.assertRaises(AssertionError): |
| 121 | _ = Tensor(X.uop, dtype=dtypes.float) |
| 122 | |
| 123 | def test_sharded_arange(self): |
| 124 | sharded_arange = Tensor.arange(1000).clone().shard(devices_2, 0) |
nothing calls this directly
no test coverage detected