-
Notifications
You must be signed in to change notification settings - Fork 41
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
Unable to run Burgers equation code with PyTorch #4
Comments
deeponet-fno/src/burgers/deeponet.py Line 49 in 2bd6b79
You need to modify |
Thanks for your response Prof.! I did as instructed and got a different error -
I tried changing the code in the source
|
You misuse numpy array and pytorch tensor somewhere. |
@ShikharShivraj have you figured it out ?
if
|
@rmojgani Make sure all your data is float32. |
Hello Prof. @lululxvi
Thank you for putting together DeepXDE. I was trying to run the Burgers code with a PyTorch backend however got a variety of errors. The first one was in the following lines
tf
was not getting imported properly so I usedtorch.cat
instead. I then gotLeaf Variable was used in in-place operation
for the linex *= 2 * np.pi
. So I fixed that.Then I got a datatype mismatch error while training the network, so I changed all
float32
in code tofloat64
and also set the default float tofloat64
-dde.config.set_default_float("float64")
I then got -
mat1 and mat2 shapes cannot be multiplied (128x4 and 1x128)
So likely, a "transpose" has to be taken in some layer and is missing but I cannot figure out where exactly. Could you please help me with this so I can run using a PyTorch backend.
Additionally, Here is my version info-
The text was updated successfully, but these errors were encountered: