MCPcopy
hub / github.com/tinygrad/tinygrad / test_stack_dim0

Method test_stack_dim0

test/null/test_tensor_uop_mixin.py:298–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

296
297class TestTensorUOpStack(unittest.TestCase):
298 def test_stack_dim0(self): _check(self, _t(2, 3), lambda x: x.stack(x, dim=0))
299 def test_stack_dim1(self): _check(self, _t(2, 3), lambda x: x.stack(x, dim=1))
300 def test_stack_3tensors(self): _check(self, _t(2, 3), lambda x: x.stack(x, x, dim=0))
301 def test_stack_new_last(self): _check(self, _t(2, 3), lambda x: x.stack(x, dim=-1))

Callers

nothing calls this directly

Calls 3

_checkFunction · 0.85
stackMethod · 0.80
_tFunction · 0.70

Tested by

no test coverage detected