How to debug this Error? I am using tensorflow version 1.5.0 [closed]
tf.compact.v1.run() AttributeError: module 'tensorflow' has no attribute 'compact'
tf.compact.v1.run() AttributeError: module 'tensorflow' has no attribute 'compact'
First of, this question has nothing to do with OpenCV and is a Tensorflow one. This would be a good candidate for Stack Overflow instead.
Two issues:
compact
, it is compat
.compat
API only supports tf.compat.as_bytes
, tf.compat.as_str_any
and tf.compat.as_text
. Support for v1 and v2 compatibility was first added in TF 1.14. Either upgrade your TF to that version specific version; pip install --upgrade tensorflow==1.14
, or just update it to the newest version; pip install tensorflow
Asked: 2020-02-25 07:30:35 -0600
Seen: 328 times
Last updated: Feb 25 '20
sorry, this is the opencv site, we can't help you with tf problems