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

Update Flux.md #506

Merged
merged 1 commit into from
Mar 13, 2021
Merged

Update Flux.md #506

merged 1 commit into from
Mar 13, 2021

Conversation

yewalenikhil65
Copy link
Contributor

Minor mistake in the documentation at https://diffeqflux.sciml.ai/stable/Flux/#Using-Flux-Chain-neural-networks-with-Flux.train!-1
it had following missing lines, without which it would result in UndefVarError: p not defined

p,re = Flux.destructure(dudt2) # use this p as the initial condition!
dudt(u,p,t) = re(p)(u) # need to restrcture for backprop!

Minor mistake in the documentation at https://diffeqflux.sciml.ai/stable/Flux/#Using-Flux-Chain-neural-networks-with-Flux.train!-1
it had following missing lines, without which it would result in `UndefVarError: p not defined`
```
p,re = Flux.destructure(dudt2) # use this p as the initial condition!
dudt(u,p,t) = re(p)(u) # need to restrcture for backprop!
```
@ChrisRackauckas ChrisRackauckas merged commit 61870b3 into SciML:master Mar 13, 2021
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