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

Method test_nested

test/null/test_uops.py:341–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

339 assert len(ret) == 10000
340
341 def test_nested(self):
342 a = UOp.new_buffer(Device.DEFAULT, 1, dtypes.char)
343 for _ in range(10_000): a = a+a
344 self.assertEqual(a.device, Device.DEFAULT)
345
346class TestUOpRender(unittest.TestCase):
347 def test_render_vectorize_empty(self):

Callers

nothing calls this directly

Calls 1

new_bufferMethod · 0.80

Tested by

no test coverage detected