tinygrad/docs
Josh Moore 1f9d2442b9
Add Tensor.scatter_reduce (#8947)
* pytorch scatter -> scatter_reduce

* WIP scatter_reduce implementation

* _pre_scatter return type hint

* split out src, mask to satisfy linter

* Add src cast back in

* dict of lambdas instead of ifs

* sum and prod reduction ops with include_self

* add reduce arg error message

* add amax and amin reduction ops

* Fix include_self for higher dims

* Simplify

* Simplify amax and amin too

* Pull include_self logic out into _inv_mask function

* reduce arg cannot be None for scatter_reduce

* Fix self-mask issue

* Add mean reduce op

* Add tests

* any() not needed here

* remove comment

* End support for Tensor src with reduce arg in tinygrad scatter

* Process index, dim inside actual functions

* Add scatter_reduce to onnx

* Add excluded onnx ScatterElements reduction tests back in

* Save 2 lines on the mask helpers

* Update docs

* Add include_self=False tests

* cleanup

* Remove unneeded helper function

---------

Co-authored-by: chenyu <chenyu@fastmail.com>
2025-02-13 09:08:54 -05:00
..
developer speed docs + upgrades [pr] (#8964) 2025-02-08 17:28:52 +08:00
showcase Add yolov8 implementation (#806) 2023-06-16 18:55:19 -07:00
tensor Add Tensor.scatter_reduce (#8947) 2025-02-13 09:08:54 -05:00
abstractions2.py remove r.lazydata.buf_uop_view [pr] (#8817) 2025-01-30 23:14:36 +02:00
abstractions3.py test fixup prereqs for delete_buffer_view [pr] (#8523) 2025-01-07 11:52:18 +02:00
CNAME hotfix: add CNAME to put docs at docs.tinygrad.org 2024-04-30 23:17:35 -07:00
dtypes.md docs: fix stack and add dtype.DType (#4721) 2024-05-24 18:23:01 -04:00
env_vars.md tf32 tc for nv and ptx (#8635) 2025-01-17 17:43:57 -08:00
favicon.svg tweak docs style (#4745) 2024-05-27 14:32:09 -07:00
index.md =docs update (#7027) 2024-10-13 19:39:06 +08:00
logo_tiny_dark.svg docs cleanup and move (#4593) 2024-05-14 20:44:59 -07:00
logo_tiny_light.svg docs cleanup and move (#4593) 2024-05-14 20:44:59 -07:00
mnist.md hotfix: ad for DEBUG=2 in the mnist tutorial 2024-10-06 21:05:48 +08:00
nn.md add gguf_load to doc [pr] (#8314) 2024-12-18 12:44:09 -05:00
quickstart.md fix small typo (#7399) 2024-10-30 19:20:28 +08:00
runtime.md Autogen webgpu dawn, removing wgpu-py dependency (f16 support part 1) (#8646) 2025-02-07 15:16:59 +08:00
showcase.md docs: showcase remove mnist_gan and add conversation.py (#4757) 2024-05-28 11:09:26 -04:00
tinybox.md hotfix: 220V 15A -> 220V 20A 2024-08-27 10:20:43 -07:00
tinygrad_intro.pdf add slides from code europe to docs 2024-06-12 14:35:08 +02:00
tinygrad_vs_others.png =docs update (#7027) 2024-10-13 19:39:06 +08:00