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

Demo code running issue #7

Open
linanzhang opened this issue Sep 27, 2024 · 0 comments
Open

Demo code running issue #7

linanzhang opened this issue Sep 27, 2024 · 0 comments

Comments

@linanzhang
Copy link

Hello,

I played around with the parameters in the demo code and got a RuntimeError. When uploading the dataset and building the network, I changed t_in and t_out:

train_loader, test_loader = kp.data.navier_stokes(data_path, batch_size = 10, T_in = t_in, T_out = t_out, type = "1e-3", sub = 1)

koopman_model = kp.model.koopman(backbone = "KNO2d", autoencoder = "MLP", o = o, m = m, r = r, t_in = t_in, device = device)

An error message promts when calling koopman_model.train(), saying

RuntimeError: The size of tensor a (163840) must match the size of tensor b (122880) at non-singleton dimension 1

The error message is the same regarless of the value of t_in and t_out. What are the requirements on t_in and t_out?

Thank you.

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