mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-08 07:39:33 +01:00
See #127836 for details. Pull Request resolved: https://github.com/pytorch/pytorch/pull/127841 Approved by: https://github.com/oulgen
8 lines
157 B
Python
8 lines
157 B
Python
# mypy: allow-untyped-defs
|
|
import torch
|
|
|
|
|
|
def is_available():
|
|
r"""Return whether PyTorch is built with OpenMP support."""
|
|
return torch._C.has_openmp
|