AttributeError: module ‘tensorflow_core._api.v2.io.gfile’ has no attribute ‘FastGFile’
对gfile使用ctrl click,可找到
因此我推断应使用GFile代替FastGFile…实际效果待验证
事实证明确实如此,打开tensorflow2.0的中文(英文)文档,可发现
提示该函数已经废弃了,应该使用tf.gfile.GFile
但其实还是会报错:AttributeError: module ‘tensorflow’ has no attribute ‘gfile’
emm最后改成tf.io.gfile.GFile解决了问题…至于为什么还是等高手解答吧