We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test_rrule
Tangent
axes
This is more a question than a bug report.
I defined the following rrule for Fill with _map (Zygote does not allow playing with map :) )
rrule
Fill
_map
_map(f, args...) = map(f, args...) function ChainRulesCore.rrule(config::RuleConfig{>:HasReverseMode}, ::typeof(_map), f::Tf, x::F) where {Tf,F<:Fill} y_el, back = ChainRulesCore.rrule_via_ad(config, f, x.value) function _map_Fill_rrule(Δ) Δf, Δx_el = back(Δ.value) return NoTangent(), Δf, Tangent{F}(value = Δx_el, axes = NoTangent()) end return Fill(y_el, axes(x)), _map_Fill_rrule end
The result seems correct but I cannot call test_rrule on it:
test_rrule(_map, sum, Fill(randn(3, 4), 4))
The error narrows down to the jacobian function from FiniteDifferences trying to differentiate through the axes field of Fill.
jacobian
FiniteDifferences
I tried to pass a Tangent to Fill via ⊢ Tangent{typeof(x)}(value=randn(3, 4), axes=NoTangent()) but without success...
⊢ Tangent{typeof(x)}(value=randn(3, 4), axes=NoTangent())
Could you help me figure out what I need to do?
The text was updated successfully, but these errors were encountered:
Nevermind dispatching on to_vec solves the issue as proposed in #258
to_vec
Sorry, something went wrong.
No branches or pull requests
This is more a question than a bug report.
I defined the following
rrule
forFill
with_map
(Zygote does not allow playing with map :) )The result seems correct but I cannot call
test_rrule
on it:The error narrows down to the
jacobian
function fromFiniteDifferences
trying to differentiate through theaxes
field ofFill
.I tried to pass a
Tangent
toFill
via⊢ Tangent{typeof(x)}(value=randn(3, 4), axes=NoTangent())
but without success...Could you help me figure out what I need to do?
The text was updated successfully, but these errors were encountered: