1# mypy: allow-untyped-defs 2import torch 3 4 5def is_available(): 6 r"""Return whether PyTorch is built with OpenMP support.""" 7 return torch._C.has_openmp 8