You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I then replace the offending rule with a "hard-coded" version using ChainRules, i.e. apply TuringLang/Bijectors.jl@29790dc, then the above error goes away 😕
I don't have time to dig into this right now, but figured I'd put it here for future reference.
The text was updated successfully, but these errors were encountered:
Okay, so it turns out the error only shows up when using @grad_from_chainrules because we somehow hit getindex with the index being a boolean array (whose elements are then subsequently treated as integer indices in the pullback), while this does not happen when we use @grad (for some reason).
Is this maybe because @grad_from_chainrules does not call value one the input?
I unfortunately haven't been able to debug this properly yet, but I encountered a somewhat strange bug when using
@grad_from_chainrules
.In https://github.com/TuringLang/Bijectors.jl/actions/runs/5781513384/job/15666726634#step:5:274 you can see
If I then replace the offending rule with a "hard-coded" version using ChainRules, i.e. apply TuringLang/Bijectors.jl@29790dc, then the above error goes away 😕
I don't have time to dig into this right now, but figured I'd put it here for future reference.
The text was updated successfully, but these errors were encountered: