-
Notifications
You must be signed in to change notification settings - Fork 160
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
Functionality to move the posterior to GPU/CPU #1368
Comments
I am on SBI 0.23.2 and realized that in NFlowsFlow.sample() near:
If I add the following, it would fix a lot of cpu/gpu handling:
I faced this issue when I tried to move everything to CPU after the training was done on GPU. I was getting this error:
Hope it helps, Update: I wasn't using TSNPE in the example above. With TSNPE, now, I'm getting a similar error when using: |
In many cases, it is useful to train the network on GPU, but to then do inference or diagnostics on CPU. This is currently a bit hacky, see also here.
It would be nice to have something like:
The text was updated successfully, but these errors were encountered: