Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle self-alias in a differentiation chain more carefully #1891

Merged
merged 2 commits into from
Oct 19, 2022
Merged

Conversation

YingboMa
Copy link
Member

No description provided.

while true
isempty(𝑑neighbors(graph, v)) || return true
v = var_to_diff[v]
v === nothing && return false
counter += 1
counter > 10_000 &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be better to do real loop detection?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should really never happen, so this check is here only to make sure that MTK terminates.

@YingboMa YingboMa merged commit 113ed20 into master Oct 19, 2022
@YingboMa YingboMa deleted the myb/inf branch October 19, 2022 21:01
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.

2 participants