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

Automatic differentiation #1930

Open
mohsenkarkheiran opened this issue Jan 12, 2025 · 1 comment
Open

Automatic differentiation #1930

mohsenkarkheiran opened this issue Jan 12, 2025 · 1 comment

Comments

@mohsenkarkheiran
Copy link

I want to check the derivatives of a PDE's solution relative to the independent variables and parameters of the equation.
However dde.Model(data, net).predict(...) returns numpy array only and cannot be used for differentiation. so I need tf.tensor.

It seems I should use Model.net() instead of Model.predict(), but when I use that I get the following error:

" 'FNN' object is not callable "

So I cannot have access to the neural net...

Any hint/suggestion will be appreciated.
Thanks

@pescap
Copy link
Contributor

pescap commented Jan 22, 2025

Hi, did you check operator in predict?

def predict(self, x, operator=None, callbacks=None):

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

No branches or pull requests

2 participants