Skip to content

Commit

Permalink
hotfix new extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 3, 2023
1 parent db00ab8 commit 8b5e58d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "2.7.0"
version = "2.7.1"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
3 changes: 2 additions & 1 deletion ext/SciMLBaseChainRulesCoreExt.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module SciMLBaseChainRulesCoreExt

using SciMLBase
import ChainRulesCore
import ChainRulesCore: NoTangent, @non_differentiable

Expand Down Expand Up @@ -118,7 +119,7 @@ function ChainRulesCore.rrule(::Type{
SDESolution{uType, tType, isinplace, P, NP, F, G, K, ND}(u, args...), SDESolutionAdjoint
end

function ChainRulesCore.rrule(::DiffEqBase.EnsembleSolution, sim, time, converged)
function ChainRulesCore.rrule(::SciMLBase.EnsembleSolution, sim, time, converged)
out = EnsembleSolution(sim, time, converged)
function EnsembleSolution_adjoint(p̄::AbstractArray{T, N}) where {T, N}
arrarr = [[p̄[ntuple(x -> Colon(), Val(N - 2))..., j, i]
Expand Down

0 comments on commit 8b5e58d

Please sign in to comment.