Skip to content

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

Open
quynhneo wants to merge 1 commit intoadjidieng:masterfrom
quynhneo:develop
Open

bug: RuntimeError, Can't call numpy() on Variable that requires grad.…#11
quynhneo wants to merge 1 commit intoadjidieng:masterfrom
quynhneo:develop

Conversation

@quynhneo
Copy link

@quynhneo quynhneo commented Dec 7, 2020

… 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant