Warning: The tf.contrib module is not included in TensorFlow 2. Many
of its submodules have been integrated into TensorFlow core, or
spun-off into other projects like tensorflow_io, or tensorflow_addons.
For instructions on how to upgrade see the Migration guide.
谢谢@jdehesa
这是TensorFlow官方网站上的信息
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib
https://www.tensorflow.org/guide/migrate
或者,您可以将代码转换为TF2.x的适当版本
相关问题 更多 >
编程相关推荐