pytorch_DAN icon indicating copy to clipboard operation
pytorch_DAN copied to clipboard

Issue shooter

Open Crestina2001 opened this issue 2 years ago • 0 comments

With PyTorch>=0.5, the index of 0-dim tensor is invalid, so in train.py line 59 to 67, [0] should be replaced with .item(): e.g. loss.data[0] --> loss.data.item()

Crestina2001 avatar Feb 23 '23 02:02 Crestina2001