Skip to content

Fix infinite recursion in graphdiff for non-torch graphs - #72

Open
darkdi wants to merge 1 commit into
apple:mainfrom
darkdi:graphdiff-recursion
Open

Fix infinite recursion in graphdiff for non-torch graphs#72
darkdi wants to merge 1 commit into
apple:mainfrom
darkdi:graphdiff-recursion

Conversation

@darkdi

@darkdi darkdi commented Aug 27, 2026

Copy link
Copy Markdown

Both the Core AI implementation and the dispatcher below it are named _compute_op_diff_details, so the second one wins and its non-torch branch calls itself. Diffing a graph without torch_object ends in RecursionError. Renamed the first to sit beside _compute_torch_op_diff_details. Nothing imports tools/graphdiff and there are no tests for it, so say where you would want one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant