Files
tinygrad/docs
Adrian Kretz 5a8ad57163 Add WHERE ternary (or trinary?) op (#1196)
* Rename FusedOps to TernaryOps

* Support ternary broadcast

* Add where llop and mlop

* Make where op work in cstyle codegen

* Don't skip test_inf_where

* Add backward path to where op

* Use bool in cstyle codegen

* Add LLVM where op

* Add numpy where op

* Add torch where op

* Simplify where mlop

* Update documentation

* Forgot a rename

* Merged relevant changes from PR #1195 onto PR #1196

* Add test to cover changes to linearizer.ast_parse for WHERE op

Without this METAL will try to use ternary op on float4 and fail

* Make where op work in wgsl backend

* Allow ternary ops to be merged

* Make mypy happy

---------

Co-authored-by: Francis Lam <flam@alum.mit.edu>
2023-07-16 00:31:55 -07:00
..
2023-06-16 18:55:19 -07:00
2020-10-26 18:12:49 +01:00
2023-06-04 08:51:20 -07:00
2023-06-16 18:55:19 -07:00

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.