1 | initial version |
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:
1: The error itself is descriptive. Their is not API called compact
, it is compat
.
2: The compat API was added for backward compatibility. Even if you fix the spelling mistake, your code will not work with your current version of TF. If you look at the supported APIs of TF 1.5, you will see that its 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
2 | No.2 Revision |
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:
1: 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