Replies: 1 comment
-
|
I believe the answers in #178 are based on TensorFlow v1. Your code looks OK, and I am not sure yet what the problem is. |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Professor Lu Lu and DeepXDE Community,
First, I would like to express my gratitude for developing this great library. It has been very helpful in conducting my Master's thesis research!
I am currently working on the inverse problem of the 2D wave equation
φ_tt = α^2 * (φ_xx + φ_zz), whereφ = φ(x, z, t)is the potential andα = α(x, z)is the speed of sound. My goal is to estimate the spatially dependent parameterαbased on observed data for the potentialφ.There are two variables to be estimated here,
φandα.The point is that
φdepends on(x,z,t), butαdepends only on(x,z)and not ont.(In other words, PDE with heterogeneous domain.)
I found a similar issue #178, and realized that I can use
apply_output_transformto modify the structure of a Neural Network.The original answer in #178 suggested using
tf.layers.dense, but I encountered an errorAttributeError: module 'tensorflow' has no attribute 'layers'. As an alternative, I usedtf.keras.layers.Dense(I am using TensorFlow as the backend);However, this resulted in an error:
What can I do to resolve this problem?
I have only recently started studying machine learning, and I don't know much about TensorFlow.
Your insights would be greatly appreciated. Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions