You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run the code TrainingCodes\dncnn\main_train.py as is, and got the error:
AttributeError: module 'tensorflow' has no attribute 'placeholder'
I tried to place at main_train.py:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Alternatively, I run the tf_upgrade_v2 that suppose to make tensor flow version 1.0, compatible with tensor flow version 2.0,
But the output code was exactly the same as the input.
Any suggestions to make the keras training supports tensor flow v2.0?
Thanks
The text was updated successfully, but these errors were encountered:
I have run the code TrainingCodes\dncnn\main_train.py as is, and got the error:
AttributeError: module 'tensorflow' has no attribute 'placeholder'
I tried to place at main_train.py:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Alternatively, I run the tf_upgrade_v2 that suppose to make tensor flow version 1.0, compatible with tensor flow version 2.0,
But the output code was exactly the same as the input.
Any suggestions to make the keras training supports tensor flow v2.0?
Thanks
The text was updated successfully, but these errors were encountered: