-
See discussion at https://discourse.julialang.org/t/chainrulescore-rrule-for-custom-struct-does-the-pullback-need-to-support-composite-explicitly/56734
We can maybe do something with `zero` and `si…
-
```julia
julia> x = (; a=1, b=2)
(a = 1, b = 2)
julia> map(sqrt, x)
(a = 1.0, b = 1.4142135623730951)
julia> gradient(x -> map(sqrt, x).a, x)
ERROR: MethodError: no method matching lastinde…
-
I don't know where to begin for troubleshooting or making a minimal example. Or for a more specific title. First time trying Enzyme.
I changed the Flux `train!` function from:
```
Flux.train!(net…
-
# Motivation
ChainRulesCore.jl defines
```julia
Base.:*(a::AbstractThunk, b) = unthunk(a) * b
```
MultivariatePolynomials.jl defines
```julia
Base.:*(α, r::RationalPoly) = (α * r.num) / r.den…
-
I don't know if this was introduced in #123 or merely uncovered and tested for.
But the tests in #123 are wrong AFAICT.
Consider:
```julia
julia> z = [1.0, 2.0, 3.0];
julia> size(z)
(3,)
…
-
One of the benefits of ChainRules' design is that rules for multiple arguments can share intermediate computations by virtue of defining variables outside of the individual `Rule`s then capturing the…
-
That's slightly long! Maybe we can figure out which example is taking so much compute and reduce it somehow!
-
we should replace out testing utilities
https://github.com/FluxML/Zygote.jl/blob/master/test/gradcheck.jl
with the ones given by ChainRulesTestUtils.
https://juliadiff.org/ChainRulesTestUtils.jl/…
-
A named SWRL implication rule corresponds to an OML ChainRule.
In OML, a ChainRule has an IRI, which is, the IRI of the OML TerminologyBox with the OML ChainRule label as IRI fragment. Identifying …
-
MWE:
```julia
julia> using Zygote, ChainRules
julia> f(x) = 2x + 1
f (generic function with 1 method)
julia> f'(1)
2
julia> ChainRules.rrule(::typeof(f), x::Int) = f(x), Δf -> (Zero(), 10…