-
Notifications
You must be signed in to change notification settings - Fork 6
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
Large lazy trees with heterogenous values causes inference overflow in Dagger #72
Comments
Yeah, the issue is probably that |
Thanks for chiming in @jpsamaroo. I don't follow you about the closure. It doesn't close over any variables? I thought it was that humongous tuple ( I kinda wish there was a way to tell Dagger to just schedule this set of |
Sorry, I misspoke, I meant to say "anonymous function". Either way, yeah, we hit inference somewhere and then it blows up due to inference somehow not having a good way to deal with heterogeneous signatures. Transforming a Anyway, whether we use
|
Thanks, I got a bit worried that there was more going on there which I had missed. I guess then the assocreduce option looks like the best one. I tried it and it was bit slower than the current mechanism, probably because it creates alot of intermediate arrays. As for One place where the reexport option becomes attractive is Then again, perhaps one can just redesign the |
MWE:
I suppose it is this line which happens to get a nice signature when everything has the same type.
Possible solution is to use
assocreduce
(or at least the same strategy) here. I will experiment with this in a PR, but other suggestions are welcome in the meantime.The text was updated successfully, but these errors were encountered: