MCPcopy
hub / github.com/tinygrad/tinygrad / test_contiguous_buffer

Method test_contiguous_buffer

test/null/test_schedule.py:103–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101
102class TestContiguous(unittest.TestCase):
103 def test_contiguous_buffer(self):
104 a = Tensor.empty(4)
105 b = a.contiguous()
106 check_schedule(b, 0)
107
108 def test_contiguous_buffer_view(self):
109 a = Tensor.empty(4)

Callers

nothing calls this directly

Calls 3

check_scheduleFunction · 0.70
emptyMethod · 0.45
contiguousMethod · 0.45

Tested by

no test coverage detected