Closed
Description
The new version v0.12.17 fails DI tests which used to pass before, as I realized in a completely unrelated PR (JuliaDiff/DifferentiationInterface.jl#327).
Something is wrong with the part of our tests related to the pullback of a scalar-to-vector function, said pullback now returns 0
instead of the correct result.
MWE (needs the main
branch of the DI repo, not the latest release):
using Pkg
Pkg.add(["ForwardDiff", "Enzyme"])
Pkg.add(
url="https://github.com/gdalle/DifferentiationInterface.jl",
subdir="DifferentiationInterface"
)
Pkg.add(
url="https://github.com/gdalle/DifferentiationInterface.jl",
subdir="DifferentiationInterfaceTest"
)
import ForwardDiff, Enzyme
using DifferentiationInterface, DifferentiationInterfaceTest
f = DifferentiationInterfaceTest.num_to_arr_vector
x = 1.0
dy = float.(1:6)
julia> pullback(f, AutoForwardDiff(), x, dy)
21.1651695124516
julia> pullback(f, AutoEnzyme(), x, dy)
0.0
Metadata
Metadata
Assignees
Labels
No labels