-
Until recently this worked. With Julia 1.10.2 and Enzyme main (8273a6e):
```julia
using Enzyme
function f(x)
a = similar(rand(3, 3))
fill!(a, x)
return sum(a)
end
autodiff(Forw…
-
Consider two stan programs:
prog1:
```stan
transformed parameters {
target += 1;
}
```
prog2:
```stan
functions {
void foo_lp(real x){
target += x;
}
}
transformed pa…
-
Does feos do any optimizations when calculating multiple derivatives from the model at the same time? With the help of @allanleal we have been able to get the complete set of derivatives of order 2 (0…
-
I'm wondering why the ability to do JVPs depends on your choice of adjoint? It should be possible to get the ODE for the JVP directly from the original ODE using autodiff. Here's an example:
```p…
-
(Transferred issue from Julia discourse: https://discourse.julialang.org/t/trouble-writing-custom-rule-in-enzyme-assertionerror-overwritten-end/108939)
Hi,
I am currently trying to use Enzyme to…
-
Sometimes a query needs to attend to (a small quantity of) keys _outside_ its local neighbourhood! Even outside its _modality_!
[Vision Transformers Need Registers](https://arxiv.org/abs/2309.16588…
-
I'm trying to run the following code which can be found [here](https://github.com/matinraayai/Redbird.jl/blob/main/test/diff/test_cart2bary.jl)
```julia
using Redbird
using SparseArrays
import Red…
-
Hello all, and thanks for the promising package.
I'm experimenting with adding Enzyme to my package Octofitter.jl in place of ForwardDiff. Enzyme looks very promising for some of the calls. However…
-
MWE:
```julia
using OrdinaryDiffEq, Zygote
using DiffEqSensitivity, Test, ForwardDiff
p = rand(3)
function dudt(u, p, t)
u .* p
end
function loss(p)
prob = ODEProblem(dudt, [3.0…
-
On Julia versions before 1.9 and Enzyme main (d7a68c407872b5d5a63a740150efedd902bd9e8b) it appears there is an error with `get` when LLVM assertions are enabled:
```julia
using Enzyme, Test
f12(x, …