mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
refactor UOps.CONST (#4639)
* delete more * nit: dont need assign * can this be simpler * use scalars * always cast * clang needs cast * format
This commit is contained in:
4
test/external/fuzz_schedule.py
vendored
4
test/external/fuzz_schedule.py
vendored
@@ -11,7 +11,7 @@ from tinygrad.tensor import Tensor
|
||||
|
||||
ctx_vars = { MULTIOUTPUT: (0, 1) }
|
||||
|
||||
def fuzz_schedule(outs: List[LazyBuffer]):
|
||||
def fuzz_schedule(outs:List[LazyBuffer]):
|
||||
# find toposorts across all tunable params
|
||||
unique_ts: Dict[Tuple[LazyBuffer, ...], Tuple[Dict, Dict[LazyBuffer, _LBScheduleItem]]] = {}
|
||||
for combination in itertools.product(*ctx_vars.values()):
|
||||
@@ -66,7 +66,7 @@ def fuzz_schedule(outs: List[LazyBuffer]):
|
||||
print(f"FAILED FOR {out}")
|
||||
raise e
|
||||
|
||||
def _exec_si(si: ScheduleItem, seed:int):
|
||||
def _exec_si(si:ScheduleItem, seed:int):
|
||||
ei = lower_schedule_item(si)
|
||||
if len(capturing): capturing[0].add(ei)
|
||||
if isinstance(ei.prg, CustomOp): Tensor._seed = seed
|
||||
|
||||
Reference in New Issue
Block a user