未验证 提交 148f14b2 编写于 作者: G gfwm0502 提交者: GitHub

Modify documents of flags in advanced_guide (#2179)

As the title
上级 8a0aa060
...@@ -2,11 +2,22 @@ ...@@ -2,11 +2,22 @@
环境变量FLAGS 环境变量FLAGS
================== ==================
调用说明
----------
PaddlePaddle中的环境变量FLAGS支持两种设置方式。
- 通过export来设置环境变量,如 :code:`export FLAGS_eager_delete_tensor_gb = 1.0` 。
- 通过API::code:`get_flag` 和 :code:`set_flags` 来打印和设置环境变量FLAGS。API使用详情请参考 :ref:`cn_api_fluid_get_flags` 与 :ref:`cn_api_fluid_set_flags` 。
环境变量FLAGS功能分类
----------------------
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
cudnn_cn.rst cudnn_cn.rst
data_cn.rst data_cn.rst
debug_cn.rst debug_cn.rst
......
...@@ -2,6 +2,17 @@ ...@@ -2,6 +2,17 @@
FLAGS FLAGS
================== ==================
Usage
------
These FLAGS in PaddlePaddle can be set in two ways.
- Set the FLAGS through export. For example: :code:`export FLAGS_eager_delete_tensor_gb = 1.0` .
- Through :code:`get_flags` and :code:`set_flags` to print and set the environment variables. For more information of using these API, please refer to :ref:`api_fluid_get_flags` and :ref:`api_fluid_get_flags` .
FLAGS Quick Search
------------------
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
......
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
:hidden: :hidden:
inference_deployment/index_cn.rst inference_deployment/index_cn.rst
flags/flags_cn.rst
...@@ -16,5 +16,5 @@ So far you have already been familiar with PaddlePaddle. And the next expectatio ...@@ -16,5 +16,5 @@ So far you have already been familiar with PaddlePaddle. And the next expectatio
:hidden: :hidden:
inference_deployment/index_en.rst inference_deployment/index_en.rst
flags/flags_en.rst
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册