调用torch.utils.tensorboard的SummaryWriter函数时报错"module 'tensorflow' has no attribute 'io'",这是由tensorboard的版本过低造成的。
torch.utils.tensorboard.SummaryWriter()
module 'tensorflow' has no attribute 'io'
对tensorboard的版本进行升级
pip install tensorboard==1.14.0
升级成功后即可正常调用