Skip to content

Commit 72cbf6e

Browse files
committed
Fixes
1 parent 5ce58ea commit 72cbf6e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ nanify(::NoRData) = NoRData()
2626

2727
function nanify_fdata_and_rdata!!(contexts::Vararg{CoDual, C}) where {C}
2828
primal_contexts = map(primal, contexts)
29-
fdata_contexts = map(fdata, contexts)
29+
fdata_contexts = map(tangent, contexts)
3030
zero_rdata_contexts = map(zero_rdata, primal_contexts)
3131
foreach(fdata_contexts) do fc
3232
increment!!(fc, nanify(fc))

DifferentiationInterface/src/misc/differentiate_with.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ function (dw::DifferentiateWith{C})(x, args::Vararg{Any, C}) where {C}
8383
end
8484

8585
function Base.show(io::IO, dw::DifferentiateWith)
86-
(; f, backend) = dw
86+
(; f, backend, context_wrappers) = dw
8787
return print(
8888
io,
8989
DifferentiateWith,
9090
"(",
9191
repr(f; context = io),
9292
", ",
9393
repr(backend; context = io),
94+
", ",
95+
repr(context_wrappers; context = io),
9496
")",
9597
)
9698
end

0 commit comments

Comments
 (0)