MCPcopy
hub / github.com/tinygrad/tinygrad / tensor

Method tensor

test/backend/test_ops.py:195–195  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

193
194 def test_split(self):
195 def tensor(s): return torch.arange(math.prod(s), dtype=torch.int32).reshape(s), Tensor.arange(math.prod(s)).reshape(s)
196 test_cases = [
197 (tensor((10,)), 5, {}),
198 (tensor((10,)), [1,4,5], {}),

Callers 15

test_amaxMethod · 0.80
test_aminMethod · 0.80
test_topkMethod · 0.80
test_masked_selectMethod · 0.80
test_equalMethod · 0.80
test_linalg_eighMethod · 0.80
test_linalg_detMethod · 0.80
test_linalg_crossMethod · 0.80
test_scalar_assignMethod · 0.80
test_floor_divMethod · 0.80
test_mnist_indexMethod · 0.80

Calls 3

reshapeMethod · 0.80
arangeMethod · 0.80
prodMethod · 0.80

Tested by

no test coverage detected