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

AttributeError: dense is not available with Keras 3. #1682

Open
Yang1805524 opened this issue Mar 22, 2024 · 5 comments
Open

AttributeError: dense is not available with Keras 3. #1682

Yang1805524 opened this issue Mar 22, 2024 · 5 comments

Comments

@Yang1805524
Copy link

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?

@jdellag
Copy link
Contributor

jdellag commented Mar 28, 2024

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.

@liaochunyang
Copy link

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.

@donaldcummins
Copy link

What is the recommended TensorFlow environment to run DeepXDE? TensorFlow 2.7.0 is very old now...

@johnkpark
Copy link

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

@jdellag
Copy link
Contributor

jdellag commented Apr 16, 2024

I have a working requirements.txt as of 4.16.2024 for anyone using apple silicon; please send a message.

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

5 participants