mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
* add and reorganize test_slice_* tests * refactor Tensor.__getitem__() * preliminary tests for 1) 0D tensors and 2) varargs for Tensor.zeros and Tensor.ones * always compare shapes of the numpy arrays obtained from tinygrad and torch tensors * add more tests for 0D support * remove test_tensor.test_slicing(). All slicing tests at test/test_ops.py * add zero-dim support * make test_end2end.py consistent with 0dim support * add test for tensor with zero in shape * don't simplify ones if shape is () * skip tests that need zero-size tensor support. - zero-size tensor support not related to 0dim tensors. * add tests for __getitem__() supporting strides >= 1 * refactor __getitem__: support for strides >= 1 * minor refactors and add comments to __getitem__ * add tests for slices with negative steps * add support for slices with negative strides |
||
|---|---|---|
| .. | ||
| external | ||
| extra | ||
| models | ||
| unit | ||
| __init__.py | ||
| Dockerfile | ||
| test_assign.py | ||
| test_conv.py | ||
| test_conv_shapetracker.py | ||
| test_custom_function.py | ||
| test_dtype.py | ||
| test_gc.py | ||
| test_jit.py | ||
| test_net_speed.py | ||
| test_nn.py | ||
| test_ops.py | ||
| test_optim.py | ||
| test_randomness.py | ||
| test_specific_conv.py | ||
| test_speed_v_torch.py | ||
| test_tensor.py | ||