我正在研究以下tensorflow示例:显然是用tf v1编写的,因此我用v2升级脚本进行了升级,有三个主要的不一致之处:
ERROR: Using member tf.contrib.rnn.DropoutWrapperin deprecated module tf.contrib. tf.contrib.rnn.DropoutWrapper cannot be converted automatically. tf.contrib但是我无法找到如何处理tf.contrib.legacy_seq2seq.sequence
我正在使用一些基于Tensorflow 1.x的,我使用的是TensorFlow (2.8)的最新版本。
我已经在python文件上运行了tf_upgrade_v2 (遵循)来生成一个新的兼容文件。但是,这并不适用于代码行;from TensorFlow.contrib import training as contrib_training。获取错误ModuleNotFoundError: No module named 'tensorflow</em
我仍然在使用tensorflow 1.15,不会在当前项目中使用tensorflow 2.0。我想知道如何关闭此警告消息: WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.For more information, please see:
* https://github.com/tensorflow/community/blob/ma