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

How to run on GPU? #1

Open
ZhouRongqi opened this issue Jan 4, 2024 · 1 comment
Open

How to run on GPU? #1

ZhouRongqi opened this issue Jan 4, 2024 · 1 comment

Comments

@ZhouRongqi
Copy link

Hello Dear Author, Recently when I run your code, it works fine on CPU but once I switch to GPU I start getting errors. For example, "Parameter 'sequential0_conv0_weight' has not been initialized yet because initialisation was deferred.
Actual initialization happens during the first forward pass. Please pass one batch of data through the network before accessing Parameters.
You can also avoid deferred initialization by specifying in_units, num_features, etc., for network lay
ers."
I hope you can tell me how to run your code correctly on the GPU!Thank you!

@ZhouRongqi
Copy link
Author

Hi Dear Author, After my tweaks, the code finally works up on GPU, but why the model doesn't converge? It feels as if no computation is performed?
image

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