mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fixes #155017 Pull Request resolved: https://github.com/pytorch/pytorch/pull/155298 Approved by: https://github.com/svekars Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
619 B
619 B
(debugging_environment_variables)=
Debugging Environment Variables
:::{list-table} :header-rows: 1
-
- Variable
- Description
-
TORCH_SHOW_CPP_STACKTRACES
- If set to
1
, makes PyTorch print out a stack trace when it detects a C++ error.
-
TORCH_CPP_LOG_LEVEL
- Set the log level of c10 logging facility (supports both GLOG and c10 loggers). Valid values are
INFO
,WARNING
,ERROR
, andFATAL
or their numerical equivalents0
,1
,2
, and3
.
-
TORCH_LOGS
- For a more in depth explanation of this environment variable, see {doc}
/logging
.