MCPcopy
hub / github.com/tinygrad/tinygrad / test_plus_big

Method test_plus_big

test/test_tiny.py:31–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 self.assertListEqual(out.tolist(), [5, 7, 9])
30
31 def test_plus_big(self):
32 out = Tensor.ones(16).contiguous() + Tensor.ones(16).contiguous()
33 self.assertListEqual(out.tolist(), [2]*16)
34
35 def test_cat(self):
36 out = Tensor.cat(Tensor.ones(8).contiguous(), Tensor.zeros(8).contiguous())

Callers

nothing calls this directly

Calls 3

contiguousMethod · 0.45
onesMethod · 0.45
tolistMethod · 0.45

Tested by

no test coverage detected