Skip to content

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