Shortcuts

torch.backends.openmp 的源代码

import torch


[docs]def is_available(): r"""返回 PyTorch 是否构建了 OpenMP 支持。""" return torch._C.has_openmp