Files
pytorch/docs/source/debugging_environment_variables.rst
drisspg 744898b311 Add doc page for environment variables that effect PyTorch Runtime (#119087)
# Summary

The goal of this PR is to add a doc page to list a number of environment that effect the PyTorch runtime. It will likely not be exhaustive but hopefully will be added and updated to stay relevant.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/119087
Approved by: https://github.com/janeyx99, https://github.com/eqy
2024-02-15 21:41:38 +00:00

15 lines
651 B
ReStructuredText

.. _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``, and ``FATAL`` or their numerical equivalents ``0``, ``1``, ``2``, and ``3``.
* - ``TORCH_LOGS``
- For a more in depth explanation of this environment variable, see :doc:`/logging`.