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 reverse mode AD tests #45

Merged
merged 5 commits into from
Mar 1, 2025
Merged

Add reverse mode AD tests #45

merged 5 commits into from
Mar 1, 2025

Conversation

SebastianM-C
Copy link
Collaborator

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@SebastianM-C
Copy link
Collaborator Author

SebastianM-C commented Jan 27, 2025

I think this needs SciML/ModelingToolkit.jl#3347 as tests pass locally for me with that branch (and fail with the latest release).

@SebastianM-C
Copy link
Collaborator Author

I think the latest MTK release should fix this

@ChrisRackauckas
Copy link
Member

Rebase

@ChrisRackauckas
Copy link
Member

Test fails but it looks like just a tolerance issue. Use a lower ODE solver tolerance.

@SebastianM-C
Copy link
Collaborator Author

The gradients are the same now, but the training fails :))

@ChrisRackauckas ChrisRackauckas merged commit 5564ad6 into main Mar 1, 2025
14 of 17 checks passed
@ChrisRackauckas ChrisRackauckas deleted the smc/ad branch March 1, 2025 18:56
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.

None yet

2 participants