Predicting the Gradient of DeepONet Solutions #1589
Unanswered
LanPeng-94
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Do you use DeepONet or DeepONetCartesianProd? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I use the
y_pred = model.predict(data.test_x), and the shape of y_pred is 200*841. Now, I want to get the gradient of each DeepONet solution. If the inputs of the trunk are x1 and x2, I write the following code,dy_x = model.predict(data.test_x, operator=dydx)However, the shape of dy_x is 841*1. It doesn't seem to have obtained the gradient corresponding to each predicted value, what should I do.
Best regards,
Peng
Beta Was this translation helpful? Give feedback.
All reactions