Closed Hyperparticle closed 5 years ago
Thanks for the find! Could you note your pytorch
, numpy
, and scipy
versions? I mostly tested this code on (regrettably) old installs of each of these, so this'll help me debug / make a fix that works for a lot of people's versions.
numpy 1.16.2
scipy 1.2.1
torch 1.0.1
Got the same problem on PyTorch 1.0.1, change back to 0.4.1(0.4.1.post2)
works.
Should be fixed in PR #5 ; check it out if you'd like; I've tested it on old + new versions on parse-distance and parse-depth tasks. If all is well / no comments, I'll merge this weekend.
When running with CUDA and generating tables, the
label
s are trying to be implicitly converted tonumpy
usingscipy
. I can see that there is already a.detach().cpu().numpy()
inregimen.py
, but for some reason it appears that thelabel
s are being converted back to CUDA. Calling.cpu()
before handing off thelabel
s toscipy
fixes it for me.Full trace below.