tinygrad/docs
Amrit Sahu e8d6a6ef2e
view.reshape without symbolic (#2218)
* 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>
2023-12-04 12:46:53 -05:00
..
showcase Add yolov8 implementation (#806) 2023-06-16 18:55:19 -07:00
DESIGNv2.md rename reduce_op (#1900) 2023-09-23 11:27:36 +08:00
README.md Add a quick start guide (#900) 2023-06-04 08:51:20 -07:00
abstractions.py No dtype alloc (#2570) 2023-12-02 13:29:40 -08:00
adding_new_accelerators.md lower schedule (#2559) 2023-12-01 19:17:46 -08:00
beautiful.py No dtype alloc (#2570) 2023-12-02 13:29:40 -08:00
env_vars.md Fix `graph_uops` (#2457) 2023-11-27 18:42:48 -08:00
logo.png
quickstart.md feat: reword (#2549) 2023-12-01 10:56:18 -08:00
reshape_without_symbolic.md view.reshape without symbolic (#2218) 2023-12-04 12:46:53 -05:00
showcase.md Add yolov8 implementation (#806) 2023-06-16 18:55:19 -07:00

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

env_vars.md

Adding New Accelerators

adding_new_accelerators.md

Community

tinygrad discord

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.