我认为它来自于这些代码行:import make_dataset
importtensorflow.contrib.eager as tfe此外,我认为我需要紧急执行的原因是因为在我的with tf.session块中:__iter__() is only supported when eager execution is enabled
因此,决定
我已经将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
我安装了Python2.6和TensorFlow 3.9。但是,我得到以下错误: tf.enable_eager_execution()
AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution我重新安装了TensorFlow,但仍然收到相同的错误。
Internal error: Failed to run on the given Interpreter: tensorflow/lite/kernels/gather_nd.cc:135 indices_has_only_positive_elementsmaxima_ij_coords), -1)但是--在运行他们的工作就像在急切地执行时