Skip to content

Comments

Added CPU support#23

Open
zolastro wants to merge 1 commit intoawslabs:masterfrom
zolastro:cpu-support-torch-models
Open

Added CPU support#23
zolastro wants to merge 1 commit intoawslabs:masterfrom
zolastro:cpu-support-torch-models

Conversation

@zolastro
Copy link

@zolastro zolastro commented Dec 20, 2022

Fix #9

CUDA was always used when using torch model, even if CPU was selected.

Changes:

  • Use self._ctxs and self._devices instead of overriding this variables.
  • Check if using GPU or CPU before calling DataParallel, since it always uses GPU.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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.

Hardcoded GPU 0?

1 participant