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
Tensorflow & Keras version #4
Comments
Tested with Tensorflow 2.2.0 and Keras 2.4.3 The issue seems to be with 'sciann/utils/utilities.py', replace the following lines of code. sciann/sciann/utils/utilities.py Line 16 in e31b25d
from tensorflow import is_tensor
sciann/sciann/utils/utilities.py Lines 22 to 25 in e31b25d
It should be up and running. |
I faced another problem. The error looks related to keras. Traceback (most recent call last): Using Tensorflow 2.2.0 and Keras 2.4.3. |
It should be So I modified '\sciann\functionals\functional.py' and '\sciann\utils\math.py' which seemed to fix it. The 1D curve-fitting example: https://github.com/sciann/sciann/blob/master/examples/example-fitting-1d.py worked as expected, but others did not. There are few problems during eager execution tensorflow/tensorflow#34944. Maybe it doesn't support Tensorflow 2.2.0. I'll try it out with >=1.14. |
Works on Tensorflow 1.14.0. Downgrade your Keras version to 2.3.0 with |
I was able to get around this issue using Tensorflow 1.15.2. I am using Google Colab notebooks. Tensorflow v2.3 is imported by default and I get the same problem as @sungkwang . These imports appear to work, but I can't verify that they aren't broken in a subtle way.
|
please use TF <= 2.2.0 and Keras==2.3.1. A new release is coming soon that support the latest release of tensorflow. |
Should be resolved now - get the latest v0.5.0.0 version. |
Hello, I would like to know what version of Tensorflow and Keras should be used. For Tensorflow, I tried version 1.15 and 2.2, but I've got the following errors.
<1.15>
ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via
pip install tensorflow
<2.2>
ImportError: cannot import name 'is_tensor' from 'keras.backend' (C:\Program_Files\anaconda3\envs\tf2-gpu\lib\site-packages\keras\backend.py)
I am using Windows 10 and anaconda. Tensorflow works fine. And, I installed sciann using pip as recommended here. Thank you.
The text was updated successfully, but these errors were encountered: