-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ReverseDiff weak dep #247
Conversation
with backwards compatibility. Comes from SciMLSensitivity.jl back compat split.
src/RecursiveArrayTools.jl
Outdated
@@ -42,6 +42,13 @@ function ChainRulesCore.rrule(T::Type{<:GPUArraysCore.AbstractGPUArray}, | |||
T(xs), ȳ -> (NoTangent(), ȳ) | |||
end | |||
|
|||
import Requires | |||
function __init__() | |||
@static if !isdefined(Base, :get_extension) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could move this check outside the function to avoid loading it.
a::AbstractArray{T2, N}) where { | ||
T <: | ||
Tracker.TrackedArray, | ||
T2 <: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracker.TrackedArray
probably isn't in scope?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol...
Requires: * SciML/PreallocationTools.jl#58 * SciML/RecursiveArrayTools.jl#247 * SciML/DiffEqBase.jl#871 Moving all of those to their rightful places instead of pirating now that a weak dependency system exists.
with backwards compatibility. Comes from SciMLSensitivity.jl back compat split.