Skip to content

Fix: colab demo breaks on cpu runtimes#499

Open
aaronrmm wants to merge 1 commit intoIDEA-Research:mainfrom
aaronrmm:fix/cpu-on-colab
Open

Fix: colab demo breaks on cpu runtimes#499
aaronrmm wants to merge 1 commit intoIDEA-Research:mainfrom
aaronrmm:fix/cpu-on-colab

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