-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
mapreduce
with accumulation inside is broken
#1448
Comments
Related issues in Bijectors.jl and Turing.jl |
That code path has failed in the past because there are ambiguities in which rrules might apply for a given call. In this case I'm not sure if that is the culprit, however. I believe the problem is that ChainRules does not have a |
Note also that |
@torfjelde Is there a reason we compute the first element first and then use that to initialize |
Type-stability issues, in particular when combined with AD. Very often we'd run into instabilities without |
About type stability, note that any call to a method with kwargs (whether they're provided in the call or not) will be type unstable unless there's a rrule defined for that particular method. In this case there is not. |
@torfjelde This issue is still persisting; any suggestions on how we should deal with this? Maybe just change the |
Yep, that's what we should do imo. Is
Does such a fast-path exist? |
Oh sorry, I meant
|
But yeah, I'd recommend that we just work around it by implementing something more specialized 👍 |
Hi, the following use-case of
mapreduce
doesnt work:It seems the
∑x += xᵢ
part is at fault here because with or withoutinit
it doesn't work:This used to work and got broken at some point. Is this an
rrule
problem? This currently works without problem onReverseDiff
andForwardDiff
.The text was updated successfully, but these errors were encountered: