xref: /aosp_15_r20/external/pytorch/torch/__config__.py (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1# mypy: allow-untyped-defs
2import torch
3
4
5def show():
6    """
7    Return a human-readable string with descriptions of the
8    configuration of PyTorch.
9    """
10    return torch._C._show_config()
11
12
13# TODO: In principle, we could provide more structured version/config
14# information here. For now only CXX_FLAGS is exposed, as Timer
15# uses them.
16def _cxx_flags():
17    """Returns the CXX_FLAGS used when building PyTorch."""
18    return torch._C._cxx_flags()
19
20
21def parallel_info():
22    r"""Returns detailed string with parallelization settings"""
23    return torch._C._parallel_info()
24