Atcold / NYU-DLSP20

NYU Deep Learning Spring 2020
https://atcold.github.io/NYU-DLSP20/
Other
6.66k stars 2.22k forks source link

Not following the instructions leads to RuntimeError #810

Closed danieljacobsen-ai closed 2 years ago

danieljacobsen-ai commented 2 years ago

Line 87 in 01-tensor_tutorial.ipynb gives:


RuntimeError Traceback (most recent call last) /var/folders/by/jx9csdf51z1g3f1k98bp4l0m0000gn/T/ipykernel_16022/3920892791.py in 1 # Numpy bridge! ----> 2 plt.hist(torch.randn(1000).numpy(), 100);

RuntimeError: Numpy is not available

OSX, venv, pip installed torch (v. 1.10.1) and numpy(1.21.4).

danieljacobsen-ai commented 2 years ago

Turns out you have to install torch (pytorch) with Conda. Using venv leads to "Numpy is not available."