xref: /aosp_15_r20/external/pytorch/torch/backends/openmp/__init__.py (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
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