lightaime / deep_gcns_torch

Pytorch Repo for DeepGCNs (ICCV'2019 Oral, TPAMI'2021), DeeperGCN (arXiv'2020) and GNN1000(ICML'2021): https://www.deepgcns.org
MIT License
1.13k stars 155 forks source link

AttributeError: 'SummaryWriter' object has no attribute 'scalar_summary' #77

Closed mtli77 closed 3 years ago

mtli77 commented 3 years ago

Hi @lightaime

Thanks for sharing your code! During the training stage on the ParNet dataset, there is some bugs below:

Traceback (most recent call last):
  File "main.py", line 196, in <module>
    train(model, train_loader, val_loader, test_loader, opt)
  File "main.py", line 72, in train
    opt.writer.scalar_summary(tag, value, opt.step)
AttributeError: 'SummaryWriter' object has no attribute 'scalar_summary'

Could you help me to solve this problem? Does this a version confiliction?

lightaime commented 3 years ago

Hi @Violetit. It seems it is a problem with your tensorboard version. You can try to reinstall the latest version or comment out this line.

mtli77 commented 3 years ago

Hi @Violetit. It seems it is a problem with your tensorboard version. You can try to reinstall the latest version or comment out this line.

Hi @lightaime I commented this part of the code, and it works well now. thanks for your suggestion!