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

Revert "Fix ordering of the promotion [Take II]" #1075

Closed
wants to merge 1 commit into from

Conversation

ChrisRackauckas
Copy link
Member

Reverts #1032. Sees if that fixes some of the Tracker tests that started failing.

Comment on lines -100 to -108
sol, pb_f = DiffEqBase._solve_adjoint(
prob, sensealg, Tracker.data(u0), Tracker.data(p),
out = DiffEqBase._solve_adjoint(prob, sensealg, Tracker.data(u0), Tracker.data(p),
SciMLBase.TrackerOriginator(), args...; kwargs...)

if sol isa AbstractArray
!hasfield(typeof(sol), :u) && return sol, pb_f # being safe here
return sol.u, pb_f # AbstractNoTimeSolution isa AbstractArray
end
return convert(AbstractArray, sol), pb_f
Copy link
Member

Choose a reason for hiding this comment

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

probably reverting just this will do

Copy link
Member

Choose a reason for hiding this comment

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

Let's wait and see #1076

@ChrisRackauckas
Copy link
Member Author

Can you make that PR? I'm out and about right now.

@avik-pal
Copy link
Member

Source of the errors doesn't seem to be that PR. tests are still failing https://github.com/SciML/DiffEqBase.jl/actions/runs/10584877403/job/29330163818?pr=1075#step:6:1828

@avik-pal
Copy link
Member

@ChrisRackauckas based on the stacktrace I have a feeling this is an OrdinaryDiffEq issue. I would expect the integrator cache to hold TrackedArrays and not regular arrays when using discrete adjoints.

@ChrisRackauckas
Copy link
Member Author

I was starting to fear that it might be related to the OrdinaryDiffEq split PRs. But I don't see how?

https://github.com/search?q=repo%3ASciML%2FOrdinaryDiffEq.jl%20value&type=code

Everything is directly using DiffEqBase.value, which is the thing that should be de-tracking as appropriate.

@ChrisRackauckas ChrisRackauckas deleted the revert-1032-ap/ordering branch September 1, 2024 14:14
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.

2 participants