pytorch-cifar100
pytorch-cifar100 copied to clipboard
TypeError: forward() takes 2 positional arguments but 13 were given
when i run train.py, there is something wrong: TypeError: forward() takes 2 positional arguments but 13 were given 'writer.add_graph(net, Variable(input_tensor, requires_grad=True))'
So , you know how to deal?
I also want to ask whether you have known how to deal the question?
I also want to ask whether you have known how to deal the question?
Sorry, this problem was ignored by me and the whole project can still run well. I just want to know how this problem happened.
Thanks for your answer.
Met the same problem in python 3.6
same problem
change https://github.com/weiaicunzai/pytorch-cifar100/blob/1fe2ec40dc05cd81fee6ab23de09b99fdb0d282f/train.py#L148 to input_tensor = torch.Tensor(1, 3, 32, 32).cuda()
Do you guys still have the same problem??? I've already updated my code, using Pytorch build-in module torch.utils.tensorboard
, and tested my code on Google Colab(python3.6, pytorch1.6), did not encounter this bug.
@GuaiYiHu @momo1986 @1187697147 @YTTHH