-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
I have installed tf v2.2 (cuda 10.1) to run tutorial_keras.py by tensorlayer, and an error occured. THANKS for possible help! #1092
Comments
Compatibility between tensorflow.keras and Keras. |
Hi. Is there any future updated version to solve this problem of compatibility? Or is there any possibility to use TensorFlow.Keras instead of Keras or vice versa to modify the code to use in TensorFlow v2.2 (because I realy love the convenience of using TensorLayer)? Big THANKS! |
I tested tutorial_keras.py on tensorflow2.2,keras2.4.3 , the code works. |
I suspect its due to lower keras and/or tensorflow versions. |
Hi @Laicheng0830 . Thanks for your help. I have already tried your solution (upgrading Keras to v2.4.3) but failed.
instead of the original one. And the code works. |
Hi @suntaochun! |
@MoscowskyAnton I'm very happy my solution helps you with your problem, and also thanks for your unique contribution! |
New Issue Checklist
Issue Description
Traceback (most recent call last):
File "d:\Test_Programs\PYTHON\tensorlayer_keras.py", line 31, in
network = tl.models.Model(inputs=ni, outputs=nn)
File "D:\Anaconda\lib\site-packages\tensorlayer\models\core.py", line 213, in init
if isinstance(check_argu, tf_ops._TensorLike) or tf_ops.is_dense_tensor_like(check_argu):
AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'
Reproducible Code
My code is :
The text was updated successfully, but these errors were encountered: