Skip to content

Conversation

@Qubitium
Copy link
Collaborator

No description provided.

import torch_npu # type: ignore

torch_npu_import_exception: Optional[BaseException] = None
except BaseException as exc: # pragma: no cover - optional dependency
try:
importlib.import_module("torch_npu")
torch_npu_importable = True
except BaseException:
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