Skip to content

Commit 98e6e5f

Browse files
authored
fix: trim down Mooncake imports (#728)
* fix: trim down Mooncake imports * Pullback cache * Ensure prepare gradient works
1 parent 58605dc commit 98e6e5f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

DifferentiationInterface/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ForwardDiff = "0.10.36"
6262
GTPSA = "1.4.0"
6363
JuliaFormatter = "1"
6464
LinearAlgebra = "<0.0.1,1"
65-
Mooncake = "0.4.83"
65+
Mooncake = "0.4.88"
6666
PolyesterForwardDiff = "0.1.2"
6767
ReverseDiff = "1.15.1"
6868
SparseArrays = "<0.0.1,1"

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/DifferentiationInterfaceMooncakeExt.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ import DifferentiationInterface as DI
55
using Mooncake:
66
CoDual,
77
Config,
8-
primal,
9-
tangent,
8+
prepare_gradient_cache,
9+
prepare_pullback_cache,
1010
tangent_type,
11-
value_and_pullback!!,
1211
value_and_gradient!!,
13-
zero_tangent,
14-
prepare_pullback_cache,
15-
Mooncake
12+
value_and_pullback!!,
13+
zero_tangent
1614

1715
DI.check_available(::AutoMooncake) = true
1816

0 commit comments

Comments
 (0)