Open PatrikHolopainen opened 4 years ago
Changed the train() -function so that they work on PyTorch 1.3.1
Changed target[c] --> target[c].view(1) (because of dimensionality problems) Changed loss.data[0] --> loss.data.item()
Changed the train() -function so that they work on PyTorch 1.3.1
Changed target[c] --> target[c].view(1) (because of dimensionality problems) Changed loss.data[0] --> loss.data.item()