mirror of https://github.com/commaai/tinygrad.git
e8d6a6ef2e
* handle reshape of contiguous subparts with explicit mask * remove the add/remove ones logic in reshape * accomodate ones in accumulate logic * make multiply commutative * fix linting * make mypy happy * add test for commutative mul * merge dimensions in shape_strides for 1 range masks * add offsets for merging * fix linting * add back explicit 1 reshapes * fix mypy errors * fix accumulate by includng state * include non-zero stride dimension in acc * small cleanup * more compact to_shape_strides * more logical cleanup * compress more * compress reshape mask * adding some comments * small bug fix * improve test coverage * remove explicit add remove ones * small bug in test * enable test_reshape_splitting_combining * small fix * 10 lines less to_shape_strides * shorten reshape mask * some more cleanup * more cleanup * introduce some symbols for compactness * more symbols * more cleaner * lessen symbols, it became less readable * remove merge_views from view.reshape * change to_shape_strides to _merge_dims * improve readability * fix corner case * cleanup * better handling of 1 <= Variable('i',1,10) & new_dim = Variable('i',1,10) * rewrite _reshape_mask for readability * fix white space * add comment * nice shorthands for readability * add proof in docs * small nit --------- Co-authored-by: chenyu <chenyu@fastmail.com> |
||
---|---|---|
.. | ||
showcase | ||
DESIGNv2.md | ||
README.md | ||
abstractions.py | ||
adding_new_accelerators.md | ||
beautiful.py | ||
env_vars.md | ||
logo.png | ||
quickstart.md | ||
reshape_without_symbolic.md | ||
showcase.md |
README.md
Welcome to the tinygrad documentation!
Here you will find documentation for tinygrad, as well as some examples and tutorials.
Getting Started
Read the quick start guide here.
Or if you want to jump right in to how tinygrad works, you can read the abstraction stack documentation.
Or if you want to see some examples, you can look at the examples in the examples directory.
Or if you just want to see some of the things tinygrad can do, check out the showcase.
API
This is currently a big work in progress.
Resources
Environment Variables
Adding New Accelerators
Community
Contributing
The documentation mainly follows the core contributing guidelines in the README.md.
Additionally, we always welcome documentation contributions, especially for features that are currently under documented.