‘’‘Traceback (most recent call last):
File “train.py”, line 73, in 
main()
File “train.py”, line 63, in main
test_loss+=loss_fn(output, label, reduction=‘sum’).item()
File “/home/a/anaconda3/envs/bcw_env/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 489, in call
result = self.forward(*input, **kwargs)
TypeError: forward() got an unexpected keyword argument ‘reduction’
‘’’
when I run my code ,I have this error.Anyone can help me to solve it?Thank you very much!