__config__.py 553 B

12345678910111213141516171819202122
  1. import torch
  2. def show():
  3. """
  4. Return a human-readable string with descriptions of the
  5. configuration of PyTorch.
  6. """
  7. return torch._C._show_config()
  8. # TODO: In principle, we could provide more structured version/config
  9. # information here. For now only CXX_FLAGS is exposed, as Timer
  10. # uses them.
  11. def _cxx_flags():
  12. """Returns the CXX_FLAGS used when building PyTorch."""
  13. return torch._C._cxx_flags()
  14. def parallel_info():
  15. r"""Returns detailed string with parallelization settings"""
  16. return torch._C._parallel_info()