Backward issues.
YutingLin opened this issue · comments
YutingLin commented
When I tried to train on my own dataset, I met the flowing error messages.
Does anyone have a solution to this error? Thank you.
Traceback (most recent call last):
File "train.py", line 211, in
trainer.training(epoch)
File "train.py", line 149, in training
loss.backward()
AttributeError: 'tuple' object has no attribute 'backward'
YutingLin commented
Change the Reduce function in pytorch-encoding/encoding/parallel.py to original code fix the error for me.