MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / test_simple_read

Method test_simple_read

test/unit/test_disk_tensor.py:549–551  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

547 Tensor.arange(100, dtype=dtypes.uint8).clone().to(f"disk:{str(self.fn)}").realize()
548
549 def test_simple_read(self):
550 t = Tensor(self.fn)
551 self.assertTrue(Tensor.all(t.to(None) == Tensor.arange(100, dtype=dtypes.uint8)).item())
552
553 def test_slice_read(self):
554 t = Tensor(self.fn)

Callers

nothing calls this directly

Calls 5

toMethod · 0.95
TensorClass · 0.90
itemMethod · 0.80
allMethod · 0.80
arangeMethod · 0.80

Tested by

no test coverage detected