You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function ChainRules.frule((_, ∂A), ::typeof(getindex), A::AbstractArray, args...)
185
-
getindex(A, args...), getindex(∂A, args...)
186
-
end
184
+
# function ChainRules.frule((_, ∂A), ::typeof(getindex), A::AbstractArray, args...)
185
+
# getindex(A, args...), getindex(∂A, args...)
186
+
# end
187
+
# WARNING: Method definition frule(Any, typeof(Base.getindex), AbstractArray{T, N} where N where T, Any...) in module ChainRules at /Users/me/.julia/packages/ChainRules/KVV0e/src/rulesets/Base/indexing.jl:59 overwritten in module Diffractor at /Users/me/.julia/dev/Diffractor/src/extra_rules.jl:184
187
188
188
189
function ChainRules.rrule(::DiffractorRuleConfig, ::typeof(map), ::typeof(+), A::AbstractArray, B::AbstractArray)
189
190
map(+, A, B), Δ->(NoTangent(), NoTangent(), Δ, Δ)
@@ -266,5 +267,4 @@ function ChainRulesCore.rrule(::DiffractorRuleConfig, ::Type{InplaceableThunk},
266
267
val, Δ->(NoTangent(), NoTangent(), Δ)
267
268
end
268
269
269
-
Base.real(z::ZeroTangent) = z #TODO should be in CRC
270
-
Base.real(z::NoTangent) = z
270
+
Base.real(z::NoTangent) = z #TODO should be in CRC, https://github.com/JuliaDiff/ChainRulesCore.jl/pull/581
0 commit comments