This commit is contained in:
George Hotz
2025-05-23 18:38:07 -07:00
committed by GitHub
parent 6b8eb5fec2
commit b58f2d4544
4 changed files with 9 additions and 12 deletions

View File

@@ -688,7 +688,7 @@ class TestZeroShapeTensor(unittest.TestCase):
np.testing.assert_allclose(a.numpy(), b.numpy())
self.assertIsNot(a.lazydata.base.buffer, b.lazydata.base.buffer)
a = Tensor.rand(16, 16).mul(5.0).add(5.0)
a = Tensor.rand(16, 16).mul(5.0).add(5.0).realize()
b = a.clone()
np.testing.assert_allclose(a.numpy(), b.numpy())
self.assertIsNot(a.lazydata.base.buffer, b.lazydata.base.buffer)