AxisType.PLACEHOLDER in reshape to do less graph_rewrite (#13373)

* AxisType.PLACEHOLDER in reshape to do less graph_rewrite

* _apply_movement_op cache
This commit is contained in:
George Hotz
2025-11-19 19:19:58 -08:00
committed by GitHub
parent 050682ab40
commit ac7559e33d
3 changed files with 14 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import gc
from tinygrad import Tensor, UOp, Device, nn
from tinygrad.engine.realize import method_cache, get_program
from tinygrad.schedule.indexing import apply_movement_op
from tinygrad.schedule.indexing import _apply_movement_op
from tinygrad.uop.divandmod import fold_divmod_general
from test.test_tiny import TestTiny
@@ -69,7 +69,7 @@ if __name__ == "__main__":
# these caches will keep uops alive
method_cache.clear()
apply_movement_op.cache_clear()
_apply_movement_op.cache_clear()
fold_divmod_general.cache_clear()
Tensor._device_seeds.clear()
Tensor._device_rng_counters.clear()