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

prefor does not update seen #803

Closed
DrChainsaw opened this issue Jul 6, 2019 · 3 comments
Closed

prefor does not update seen #803

DrChainsaw opened this issue Jul 6, 2019 · 3 comments

Comments

@DrChainsaw
Copy link
Contributor

I'm guessing that IdSet is there to avoid infinite recursion, but nothing is ever put into it.

For example:

using Flux
mutable struct A a end
Flux.@treelike A

trouble = A(nothing)
trouble.a = trouble

params(trouble)
ERROR: StackOverflowError:

Happens on 0.8.3, but source on master looks the same to me.

@MikeInnes
Copy link
Member

Yes, I think also to avoid collecting parameters twice from layers that are used multiple times, which would be another interesting test case to come up with.

Would be happy to give pointers if you're interested in submitting a PR for this.

@DrChainsaw
Copy link
Contributor Author

Thanks,

Sorry for not sending a PR right away. I'm new to the language so I wanted to make sure there was no other intention.

PR sent: #805

MikeInnes added a commit that referenced this issue Jul 11, 2019
@MikeInnes
Copy link
Member

Closed by #805.

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

No branches or pull requests

2 participants