sciann / sciann-applications

A place to share problems solved with SciANN
https://www.sciann.com
Other
238 stars 128 forks source link

Running Error, tf v2.4.0 #15

Closed sarvin90 closed 3 years ago

sarvin90 commented 3 years ago

Since the introduction of the new version of Tensorflow ==2.4.0, almost16 days ago, there is a problem with running the sciann: AttributeError: module 'tensorflow' has no attribute 'python'

I have searched to find the solution, some advised previous version of Tensorflow, and some others advised to delete the python in the code: from import tensorflow.python.keras.backend as K to import tensorflow.keras.backend as K

but even this solution brings up errors module 'tensorflow.keras.backend' has no attribute 'get_graph'

sciann commented 3 years ago

Thanks for pointing this out. It is not tested on 2.4.0 version. You should not face an issue with 2.3.0. I will check the 2.4.0 version after holidays.

On Dec 30, 2020, at 5:07 AM, sarvin90 notifications@github.com wrote:

 Since the introduction of the new version of Tensorflow ==2.4.0, almost16 days ago, there is a problem with running the sciann: AttributeError: module 'tensorflow' has no attribute 'python'

I have searched to find the solution, some advised previous version of Tensorflow, and some others advised to delete the python in the code: from import tensorflow.python.keras.backend as K to import tensorflow.keras.backend as K

but even this solution brings up errors

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sciann commented 3 years ago

Google colab (TF-2.4) issue is now resolved. Please double-check if you still face this issue.