Skip to content

Commit 41e8700

Browse files
committed
complexity tracing: support pytrees
1 parent 150254c commit 41e8700

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoray/experimental/complexity_tracing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,12 @@ def frequencies(it):
240240

241241

242242
def compute_cost_scalings(z, factor_map, print_missed=True):
243+
from autoray.lazy import descend
243244

244245
counts = {}
245246
missed = {}
246247

247-
for node in z.descend():
248+
for node in descend(z):
248249
f = node.fn_name
249250

250251
if f in COST_SCALINGS:

0 commit comments

Comments
 (0)