Skip to content

Commit 151ad47

Browse files
committed
fix: upgrade Mooncake compat to v0.5
1 parent a266e80 commit 151ad47

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

DifferentiationInterface/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/JuliaDiff/DifferentiationInterface.jl/compare/DifferentiationInterface-v0.7.15...main)
8+
## [Unreleased](https://github.com/JuliaDiff/DifferentiationInterface.jl/compare/DifferentiationInterface-v0.7.16...main)
9+
10+
## [0.7.16](https://github.com/JuliaDiff/DifferentiationInterface.jl/compare/DifferentiationInterface-v0.7.15...DifferentiationInterface-v0.7.16)
11+
12+
### Fixed
13+
14+
- Upgrade Mooncake compat to v0.5 ([#961](https://github.com/JuliaDiff/DifferentiationInterface.jl/pull/961))
915

1016
## [0.7.15](https://github.com/JuliaDiff/DifferentiationInterface.jl/compare/DifferentiationInterface-v0.7.14...DifferentiationInterface-v0.7.15)
1117

DifferentiationInterface/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DifferentiationInterface"
22
uuid = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
33
authors = ["Guillaume Dalle", "Adrian Hill"]
4-
version = "0.7.15"
4+
version = "0.7.16"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
@@ -69,7 +69,7 @@ ForwardDiff = "0.10.36,1"
6969
GPUArraysCore = "0.2"
7070
GTPSA = "1.4.0"
7171
LinearAlgebra = "1"
72-
Mooncake = "0.4.175"
72+
Mooncake = "0.5.0"
7373
PolyesterForwardDiff = "0.1.2"
7474
ReverseDiff = "1.15.1"
7575
SparseArrays = "1"

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/forward_onearg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function DI.prepare_pushforward_nokwarg(
1919
_sig = DI.signature(f, backend, x, tx, contexts...; strict)
2020
config = get_config(backend)
2121
cache = prepare_derivative_cache(
22-
f, x, map(DI.unwrap, contexts)...; config.debug_mode, config.silence_debug_messages
22+
f, x, map(DI.unwrap, contexts)...; config
2323
)
2424
dx_righttype = zero_tangent(x)
2525
df = zero_tangent(f)

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/forward_twoarg.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ function DI.prepare_pushforward_nokwarg(
2525
y,
2626
x,
2727
map(DI.unwrap, contexts)...;
28-
config.debug_mode,
29-
config.silence_debug_messages,
28+
config
3029
)
3130
dx_righttype = zero_tangent(x)
3231
dy_righttype = zero_tangent(y)

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/onearg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function DI.prepare_pullback_nokwarg(
1313
_sig = DI.signature(f, backend, x, ty, contexts...; strict)
1414
config = get_config(backend)
1515
cache = prepare_pullback_cache(
16-
f, x, map(DI.unwrap, contexts)...; config.debug_mode, config.silence_debug_messages
16+
f, x, map(DI.unwrap, contexts)...; config
1717
)
1818
y = f(x, map(DI.unwrap, contexts)...)
1919
dy_righttype = zero_tangent(y)
@@ -122,7 +122,7 @@ function DI.prepare_gradient_nokwarg(
122122
_sig = DI.signature(f, backend, x, contexts...; strict)
123123
config = get_config(backend)
124124
cache = prepare_gradient_cache(
125-
f, x, map(DI.unwrap, contexts)...; config.debug_mode, config.silence_debug_messages
125+
f, x, map(DI.unwrap, contexts)...; config
126126
)
127127
contexts_tup_false = map(_ -> false, contexts)
128128
args_to_zero = (

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/twoarg.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ function DI.prepare_pullback_nokwarg(
2727
y,
2828
x,
2929
map(DI.unwrap, contexts)...;
30-
debug_mode = config.debug_mode,
31-
silence_debug_messages = config.silence_debug_messages,
30+
config,
3231
)
3332
dy_righttype_after = zero_tangent(y)
3433
contexts_tup_false = map(_ -> false, contexts)

0 commit comments

Comments
 (0)