update docs, remove corealize (#4264)

* update docs, remove corealize

* handle 0 line count

* tensor schedule
This commit is contained in:
George Hotz
2024-04-23 12:05:29 +04:00
committed by GitHub
parent 9b7efa72ea
commit 967638f0d5
11 changed files with 61 additions and 32 deletions

View File

@@ -5,3 +5,23 @@ Everything in [Tensor](tensor.md) is syntactic sugar around [function.py](functi
::: tinygrad.lazy.LazyBuffer
options:
show_source: false
## Lowering
The [scheduler](/tinygrad/engine/schedule.py) converts the graph of LazyBuffers into a list of `ScheduleItem`. `ast` specifies what compute to run, and `bufs` specifies what buffers to run it on.
::: tinygrad.ops.ScheduleItem
The code in [realize](/tinygrad/engine/realize.py) lowers `ScheduleItem` to `ExecItem` with
::: tinygrad.engine.realize.lower_schedule
## Execution
Creating `ExecItem`, which has a run method
::: tinygrad.engine.realize.ExecItem
options:
members: true
Lists of `ExecItem` can be condensed into a single ExecItem with the Graph API (rename to Queue?)

View File

@@ -12,7 +12,8 @@
## tinygrad ops
::: tinygrad.Tensor.corealize
::: tinygrad.Tensor.schedule_with_vars
::: tinygrad.Tensor.schedule
::: tinygrad.Tensor.realize
::: tinygrad.Tensor.replace
::: tinygrad.Tensor.assign