Skip to content
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

Merged
merged 12 commits into from
Feb 7, 2023
Merged

Add ReverseDiff weak dep #247

merged 12 commits into from
Feb 7, 2023

Conversation

ChrisRackauckas
Copy link
Member

with backwards compatibility. Comes from SciMLSensitivity.jl back compat split.

with backwards compatibility. Comes from SciMLSensitivity.jl back compat split.
@@ -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)
Copy link
Contributor

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 <:
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol...

ChrisRackauckas added a commit to SciML/SciMLSensitivity.jl that referenced this pull request Feb 6, 2023
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.
@ChrisRackauckas ChrisRackauckas merged commit 6ec82b5 into master Feb 7, 2023
@ChrisRackauckas ChrisRackauckas deleted the weakdep branch February 7, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants