在学习pytorchtutorial时,出现错误AttributeError: module ‘tensorflow_core._api.v2.io.gfile’ has no attribute 'get_filesystem’
原因:tensorflow和tensorboard发生冲突
解决方法:
在原代码中加入以下代码:
import tensorflow as tf
import tensorboard as tb
tf.io.gfile = tb.compat.tensorflow_stub.io.gfile
再运行,错误解决 !