Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook 5-nn-imdb, issue: Can't call numpy() on Variable that requires grad. Use var.detach().numpy() instead. #47

Open
RaffaToSpace opened this issue Aug 21, 2020 · 0 comments

Comments

@RaffaToSpace
Copy link

It happens at:

np.allclose(enc.weight[vocab.stoi["30-something"], :],
enc.weight[vocab.stoi["linklater"], :])

numpy version 1.19.1
python 3.6.11 (can't upgrade due to compatibility with tensorflow version for CUDA capability 3.0)
pythorch 1.1.0
fastAI 1.0.61

Thanks

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

No branches or pull requests

1 participant