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

Support forward-mode AD #1903

Open
wants to merge 177 commits into
base: master
Choose a base branch
from
Open

Support forward-mode AD #1903

wants to merge 177 commits into from

Conversation

Jerry-Jzy
Copy link
Contributor

Support forward-mode AD and fix a bug when multi-output is needed

Jerry-Jzy and others added 30 commits May 27, 2022 16:39
Update example of heat equation (lululxvi#706)
Add document for Lorenz inverse with exogenous input (lululxvi#709)
OperatorPredictor supports backends tensorflow.compat.v1, tensorflow,…
error = bc.error(
error_f = [fi[:, bcs_start[-1] :] for fi in f]
# Each error has the shape (N1, ~N2)
losses = [loss_fn(bkd.zeros_like(error), error) for error in error_f]
Copy link
Owner

Choose a reason for hiding this comment

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

The same thing here. For example, if loss_fn is sum, then the code is not correct. Need to first compute the loss for each function, then average over functions.

Copy link
Owner

Choose a reason for hiding this comment

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

Also this part. What is the speed of the current code vs the correct code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image image

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