MCPcopy
hub / github.com/tinygrad/tinygrad / compute

Method compute

test/backend/test_jit.py:713–715  ·  view source on GitHub ↗
(self, device, inp)

Source from the content-addressed store, hash-verified

711
712class TestJitGraphSplit(unittest.TestCase):
713 def compute(self, device, inp):
714 assert inp.device == device, f"Input device {inp.device} does not match expected {device}"
715 return (inp + 1.0).contiguous().realize()
716
717 def copy(self, device, to_device, inp):
718 assert inp.device == device, f"Input device {inp.device} does not match expected {device}"

Callers 2

fMethod · 0.95
tvm_gemm.pyFile · 0.80

Calls 2

realizeMethod · 0.80
contiguousMethod · 0.45

Tested by

no test coverage detected