TypeError: forward() takes 2 positional arguments but 3 were given

Traceback (most recent call last):
File “/home/akb/pybook/pytorchupandrunning/chapter2/chapter2.py”, line 101, in
train(model, optimizer, torch.nn.CrossEntropyLoss(),train_data_loader, test_data_loader)
File “/home/akb/pybook/pytorchupandrunning/chapter2/chapter2.py”, line 75, in train
output = model(inputs)
File “/home/akb/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 547, in call
result = self.forward(*input)
TypeError: forward() takes 1 positional argument but 2 were given

Please help me to solve this error.