Zygote.jl icon indicating copy to clipboard operation
Zygote.jl copied to clipboard

21st century AD

Results 215 Zygote.jl issues
Sort by recently updated
recently updated
newest added

Currently `Zygote.gradient` projects the co-tangent returned from `pullback` to have the same sparsity structure as the input. This is mathematically incorrect when the matrix input is sparse. According to Zygote,...

This PR fixes #1507. This is technically a bug fix but I bumped the minor version because it is a significant enough change in behaviour. If a patch release is...

`Zygote` fails to use `rrule`s defined by other packages when run with `Julia 1.10+` I noticed this when looking at compatibility with [`TaylorDiff.jl`](https://github.com/JuliaDiff/TaylorDiff.jl). In `Julia 1.9.4`: ```julia import Zygote import...

MWE: ```julia julia> using LinearAlgebra, Zygote, CUDA julia> Zygote.gradient(x -> tr(x), CUDA.zeros(2,2))[1] # works 2×2 Diagonal{Float32, FillArrays.Fill{Float32, 1, Tuple{Base.OneTo{Int64}}}}: 1.0 ⋅ ⋅ 1.0 julia> Zygote.gradient(x -> sum(abs2, x) - tr(x),...

We get at least a couple of confused questions about it every month, but AFAICT there isn't much appetite to bring it up to a point of general usefulness. How...