mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 07:28:15 -05:00
reorder a few things (#1915)
* reorder a few things * huh, that has to be there * move apply shapetracker * BufferOps * only for type checking
This commit is contained in:
@@ -266,9 +266,9 @@ from tinygrad.tensor import Tensor
|
||||
result = Tensor(2).realize() + Tensor(3).realize()
|
||||
|
||||
# use the real Linearizer to linearize 2+3
|
||||
from tinygrad.lazy import _replace_loadops
|
||||
from tinygrad.lazy import _replace_bufferops
|
||||
from tinygrad.codegen.linearizer import Linearizer
|
||||
op, _ = _replace_loadops(result.lazydata.op)
|
||||
op, _ = _replace_bufferops(result.lazydata.op)
|
||||
linearizer = Linearizer(op)
|
||||
linearizer.linearize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user