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

Fix: colab demo breaks on cpu runtimes #499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aaronrmm
Copy link

In cell 9 the predict method is called without passing the device, and the default is "gpu". This causes the notebook to fail if in a CPU runtime.

The fix is simply to pass in the device that was declared earlier in notebook.

Note: I only tested the changes with a CPU runtime because I can't run predict at all on the free tiers of colab GPU runtimes.

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

Successfully merging this pull request may close these issues.

2 participants