DETM icon indicating copy to clipboard operation
DETM copied to clipboard

bug: RuntimeError, Can't call numpy() on Variable that requires grad.…

Open quynhneo opened this issue 4 years ago • 0 comments

… Use var.detach().numpy() instead on Line 507 (Tested on PyTorch 1.1.0 with Ubuntu 20.04, Mac OS 10.15)

ref: https://stackoverflow.com/questions/55466298/pytorch-cant-call-numpy-on-variable-that-requires-grad-use-var-detach-num/56023903

ALSO: deleted trailing white spaces

quynhneo avatar Dec 07 '20 21:12 quynhneo