We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ffd05 commit eeb4a17Copy full SHA for eeb4a17
2 files changed
DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/forward_onearg.jl
@@ -47,7 +47,7 @@ function DI.value_and_pushforward(
47
return y, dy
48
end
49
y = first(ys_and_ty[1])
50
- ty = last.(ys_and_ty)
+ ty = map(last, ys_and_ty)
51
return y, ty
52
53
DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/onearg.jl
@@ -55,7 +55,7 @@ function DI.value_and_pullback(
55
y, _copy_output(new_dx)
56
57
y = first(ys_and_tx[1])
58
- tx = last.(ys_and_tx)
+ tx = map(last, ys_and_tx)
59
return y, tx
60
61
0 commit comments