mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 07:28:15 -05:00
limit max paths
This commit is contained in:
2
test/external/fuzz_schedule.py
vendored
2
test/external/fuzz_schedule.py
vendored
@@ -71,7 +71,7 @@ def find_all_toposorts(graph:DefaultDict[T, List[T]], in_degree:DefaultDict[T, i
|
||||
path.append(v)
|
||||
visited.add(v)
|
||||
recurse_paths(path)
|
||||
if len(ret) >= getenv("FUZZ_SCHEDULE_MAX_PATHS", 500): return
|
||||
if len(ret) >= getenv("FUZZ_SCHEDULE_MAX_PATHS", 5): return
|
||||
# backtrack
|
||||
for u in graph[v]: in_degree[u] += 1
|
||||
path.pop()
|
||||
|
||||
Reference in New Issue
Block a user