Skip to content

Commit

Permalink
Add FiniteDiff to test deps
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Nov 24, 2024
1 parent 82e8d0c commit 64a6b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DifferentiationInterface/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[targets]
test = ["ADTypes", "Aqua", "ComponentArrays", "DataFrames", "Documenter", "ExplicitImports", "ForwardDiff", "JET", "JLArrays", "JuliaFormatter", "Pkg", "Random", "SparseArrays", "SparseConnectivityTracer", "SparseMatrixColorings", "StableRNGs", "StaticArrays", "Test", "Zygote"]
test = ["ADTypes", "Aqua", "ComponentArrays", "DataFrames", "Documenter", "ExplicitImports", "FiniteDiff", "ForwardDiff", "JET", "JLArrays", "JuliaFormatter", "Pkg", "Random", "SparseArrays", "SparseConnectivityTracer", "SparseMatrixColorings", "StableRNGs", "StaticArrays", "Test", "Zygote"]
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
module DifferentiationInterfaceForwardDiffExt

using ADTypes: AbstractADType, AutoForwardDiff
using Base: Fix1, Fix2
using ADTypes: AutoForwardDiff
import DifferentiationInterface as DI
using DifferentiationInterface:
BatchSizeSettings,
Cache,
Constant,
PrepContext,
Context,
FixTail,
DerivativePrep,
DifferentiateWith,
GradientPrep,
HessianPrep,
HVPPrep,
JacobianPrep,
NoDerivativePrep,
NoSecondDerivativePrep,
PushforwardPrep,
Rewrap,
Expand All @@ -42,17 +39,14 @@ using ForwardDiff:
derivative,
derivative!,
extract_derivative,
extract_derivative!,
gradient,
gradient!,
hessian,
hessian!,
jacobian,
jacobian!,
npartials,
partials,
value
using LinearAlgebra: dot, mul!

DI.check_available(::AutoForwardDiff) = true

Expand Down

0 comments on commit 64a6b9e

Please sign in to comment.