mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/19749 ghimport-source-id: a6636c0acddbdc5fd5b0dcb20b9f80cbdb9159b9 Differential Revision: D15141993 Pulled By: ilia-cher fbshipit-source-id: 96085608398b2a4c97c68b2948f5184d07f9ad3d
18 lines
450 B
Python
18 lines
450 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. We're not for now; considering doing so if someone
|
|
# asks for it.
|
|
|
|
def parallel_info():
|
|
r"""Returns detailed string with parallelization settings"""
|
|
return torch._C._parallel_info()
|