04 2021 档案
TensorFlow2报错:tf.placeholder() is not compatible with eager execution.
摘要:当我们将TensorFlow1.x中的程序迁移到2.0+版本时,在之前1.x版本中有函数tf.placeholder(),替换成tf.compat.v1.placeholder(),运行时报如下错误: tf.placeholder() is not compatible with eager exe
阅读全文