MCPcopy
hub / github.com/tinygrad/tinygrad / test_reconstruct_debug

Method test_reconstruct_debug

test/null/test_viz.py:932–940  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

930
931class TestCLI(unittest.TestCase):
932 def test_reconstruct_debug(self):
933 with save_viz() as viz:
934 Tensor.empty(1, device="NULL").add(2.0).realize()
935 profile_marker("marker @ 1")
936 Tensor.empty(1, device="NULL").add(3.0).realize()
937 with write_files(viz) as files, Context(DEBUG=4):
938 out = run_cli(*files, "-s", "NULL")
939 assert any(s.get("value", "").startswith("void E") for s in out)
940 assert any(s.get("name", "") == "marker @ 1" for s in out)
941
942 def test_aggregate(self):
943 N, CNT = 1024, 5

Callers

nothing calls this directly

Calls 9

profile_markerFunction · 0.90
ContextClass · 0.90
save_vizFunction · 0.85
write_filesFunction · 0.85
run_cliFunction · 0.85
realizeMethod · 0.80
addMethod · 0.45
emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected