Skip to content

Commit 304008e

Browse files
committed
ChainRulesCore 1
1 parent 972de91 commit 304008e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
2323

2424
[compat]
2525
AbstractTrees = "0.3"
26-
ChainRulesCore = "0.9, 0.10, 1"
26+
ChainRulesCore = "1"
2727
Combinatorics = "1.0"
2828
ConstructionBase = "1.1"
2929
DataStructures = "0.18"

src/adjoints.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function rrule(::typeof(Code.create_array), A::Type{<:AbstractArray}, T, u::Val{
66
y = Code.create_array(A, T, u, d, elems...)
77
function create_array_pullback(Δ)
88
dx = Δ
9-
(NO_FIELDS, DoesNotExist(), DoesNotExist(), DoesNotExist(), DoesNotExist(), dx..., ntuple(_ -> DoesNotExist(), length(elems) - prod(dims) + j)...)
9+
(ZeroTangent(), NoTangent(), NoTangent(), NoTangent(), NoTangent(), dx..., ntuple(_ -> NoTangent(), length(elems) - prod(dims) + j)...)
1010
end
1111
y, create_array_pullback
1212
end

0 commit comments

Comments
 (0)