有没有办法告诉TFLearn以V2格式保存检查点?我正在使用当前(r0.12.1)版本的TensorFlow。:tensorflow:TensorFlow's V1 checkpoint format has been deprecated.WARNING:tensorflow:Consider switching to the more efficient V2 format:
WARNING:tensorflow:
我找不到有关如何使用TensorFlowv2进行基本数据流编程的适当文档。我可以在网上找到许多关于TensorFlowv1的资源,但它们解释的许多行为现在都被弃用了。例如,以下python代码在TensorFlowv1中运行良好: import tensorflow as tf
def func1(atf.Session()
res = sess1
我已经将tf_upgrade_v2 TF1代码升级到了TF2。我两个都是新手。我得到了下一个错误: RuntimeError: tf.placeholder() is not compatible with eager execution. 我有一些tf.compat.v1.placeholder()。 self.temperature = tf.compat.v1.placeholder_with_default(1., shape=())
self.edges_labels = tf.compat.v1.placeholder(dtype=tf.int64, shape=(None, v