mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47861 Test Plan: Imported from OSS Reviewed By: ngimel Differential Revision: D25199263 Pulled By: robieta fbshipit-source-id: 3cfdb0485d686a03a68dd0907d1733634857963f
21 lines
551 B
Python
21 lines
551 B
Python
import torch
|
|
|
|
|
|
def show():
|
|
"""
|
|
Return a human-readable string with descriptions of the
|
|
configuration of PyTorch.
|
|
"""
|
|
return torch._C._show_config()
|
|
|
|
# TODO: In principle, we could provide more structured version/config
|
|
# information here. For now only CXX_FLAGS is exposed, as Timer
|
|
# uses them.
|
|
def _cxx_flags():
|
|
"""Returns the CXX_FLAGS used when building PyTorch."""
|
|
return torch._C._cxx_flags()
|
|
|
|
def parallel_info():
|
|
r"""Returns detailed string with parallelization settings"""
|
|
return torch._C._parallel_info()
|