Tensorboard problem1

when i import torch.utils.tensorboard.SummaryWriter ,it tell me “cannot import name ‘SummaryWriter’ from partially initialized module ‘torch.utils.tensorboard’”. But i don’t know how to deal this problem. if you know how to deal with it ,please tell me .thankyou.

Could you try to use:

from torch.utils.tensorboard import SummaryWriter


i have found the solution of my question.It is because the file name has the same name as the library name.And thank you for answer my question :smiley: