team-10/venv/Lib/site-packages/torch/cuda/amp/common.py
2025-08-02 02:00:33 +02:00

11 lines
230 B
Python

# mypy: allow-untyped-defs
from importlib.util import find_spec
import torch
__all__ = ["amp_definitely_not_available"]
def amp_definitely_not_available():
return not (torch.cuda.is_available() or find_spec("torch_xla"))