Closed HyungJunNoh closed 2 years ago
Hi HyungJunNoh,
Thank you for interest in our work. It seems that the first dimension of your keys
and u0_train
are different. Can you print the shape of these two? Perhaps you only generate 10 training data?
print(keys.shape)
print(u0_train.shape)
------------------------
(1000, 2)
(10, 101)
Yes, both are different. I got data Burger.mat
with given matlab script, found from Physics-informed-DeepONets/Burger/Data/
. Was there anything I should implement for generating data?
I think the only thing you need to change is the value of N in Physics-informed-DeepONets/Burger/Data/gen_Burgers.m Change N = 10 to N = 1000. But it may take some time to generate the total dataset.
Or if you just want to get rid of this error and run the notebook then you can just change N_train =1000
to N_train = 10
.
Hope this helps.
Thank you, Sifan!
Hello Sifan, First of all, thank you for making this code public. I'm trying to run and understand the code in
PI_DeepONet_Burger.ipynb
. Especially init gives error as follow.
So as far as I figured out, to use
vmap
, the sizes of the mapped input axes for all mapped positional arguments must all be equal, but here looks likekeys, u0_train
have different size in axis=0. And, so vmap gives error.Is there anything I am missing? I've tried to run this code on both colab and my server, but both gave me same error. How did you run this without vmap issue? Thank you!
Original Code Snippet