目录
module 'tensorflow' has no attribute 'io'解决:
module 'tensorflow' has no attribute 'io'
from tensorboard.compat import tensorflow_stub as tf
from tensorboard.compat import tensorflow_stub as tf
if "tensorflow" in sys.modules :
print('sd')
_HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
from torch.utils.tensorboard import SummaryWriter
修改为:
from tensorboardX import SummaryWriter,