运行时报错
来源:4-7 如何使用tf.train.slice_input_producer读取文件列表中的样本

头发又掉了吧
2019-10-11
老师我跑程序的时候报这个错
Input pipelines based on Queues are not supported when eager execution is enabled. Please use tf.data to ingest data into your model instead.
写回答
2回答
-
慕仙4363604
2020-05-25
代码前加一句
tf.compat.v1.disable_eager_execution() 就行了,虽然我也不知道啥意思。。
10 -
会写代码的好厨师
2019-10-11
你安装的tf是什么版本的?看报错像是tensorflow 2.0的问题
022020-02-08
相似问题