-
Notifications
You must be signed in to change notification settings - Fork 30
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
Problems using PINNs #1
Comments
Hi |
Hey, thank's for the quick reply. That's is not the problem, since the script So the package 'numpy' is definitely installed. |
Hi
I found also this link helpful
https://stackoverflow.com/questions/71689095/how-to-solve-the-pytorch-runtimeerror-numpy-is-not-available-without-upgrading
…On 04/08/22 10:57, neumannoskar wrote:
Hey, thank's for the quick reply. That's is not the problem, since the
script |logistic_equation_1d.py| would produce an error earlier when
trying to import numpy in line 7.
So the package 'numpy' is definitely installed.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNETHMGXROU2HVF6RGADPLVXOAYBANCNFSM55RTH3YQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I found this post already, but unfortunately this version of torch is not available anymore. Trying to downgrade produces:
|
Hello, I pinned the version in the
Try then to execute the code again. |
You are definitely right.
That piece of code is trying to convert the 'loss' torch tensor to a
numpy array.
It sounds as if the numpy() method would not be available.
Are you using a CPU or a GPU?
Anyway try this
loss.detach().cpu().numpy()
…On 04/08/22 10:57, neumannoskar wrote:
Hey, thank's for the quick reply. That's is not the problem, since the
script |logistic_equation_1d.py| would produce an error earlier when
trying to import numpy in line 7.
So the package 'numpy' is definitely installed.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNETHMGXROU2HVF6RGADPLVXOAYBANCNFSM55RTH3YQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am going to close this issue since I assume the problem has been solved with the two comments above. |
I've tried to use the example for the
logistic_equation_1d.py
. It produces following errorline 94, in train_model
loss_evolution.append(loss.detach().numpy())
RuntimeError: Numpy is not available
I'm using Python 3.10.4.
Thank's for any help.
The text was updated successfully, but these errors were encountered: