Open Yang1805524 opened 8 months ago
I was running into this issue when I created a new Python 3.12 virtual environment. When I downgraded back to 3.11 and installed the necessary packages and dependencies it solved itself.
I had the same issue. It was solved when I use tensorflow as the supported backend, not tensorflow.compat.v1. Some necessary packages should be installed.
What is the recommended TensorFlow environment to run DeepXDE? TensorFlow 2.7.0 is very old now...
I was able to fix the issue by downgrading tensorflow
to 2.15.0
and tensorflow-probability
to 0.23.0
. i.e.
pip3 install tensorflow==2.15.0 tensorflow-probability==0.23.0
I have a working requirements.txt as of 4.16.2024 for anyone using apple silicon; please send a message.
I was able to fix the issue by downgrading
tensorflow
to2.15.0
andtensorflow-probability
to0.23.0
. i.e.pip3 install tensorflow==2.15.0 tensorflow-probability==0.23.0
Mr. Johnkpark's solution works. But these dependencies need to be installed before deepxde, in case someone doesn't know.
AttributeError:
dense
is not available with Keras 3. I'm getting an error when running an example file in PyCharm. How can I resolve it?