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

utils.default_device_type(): detect either cuda or mps #718

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

Conversation

jimlloyd
Copy link

Detects if either cuda or mps is available and sets the default device type appropriately.

@asegun-cod
Copy link

Hi @jimlloyd,

from utils import default_device_type produces this error on my end.

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'default_device_type' from 'utils' (C:\...\utils.py)

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