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

AD: Add ChainRules extension for MTKParameters construction #2977

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

DhairyaLGandhi
Copy link
Member

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

Needed for SciML/ModelingToolkitNeuralNets.jl#20

Basically, adds a simple rrule to make the MTKParameters constructor work out of the box. Currently only handles tunables

cc @AayushSabharwal

Add any other context about the problem here.

@ChrisRackauckas
Copy link
Member

Add a quick test?

@DhairyaLGandhi
Copy link
Member Author

Indeed, I am working on one.

@ChrisRackauckas
Copy link
Member

I'll merge with the depwarn.

@ChrisRackauckas ChrisRackauckas merged commit 2e35294 into SciML:master Aug 20, 2024
19 of 23 checks passed
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