set_flags_cn.rst 411 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
.. _cn_api_fluid_set_flags:

set_flags
-------------------------------

.. py:function:: paddle.fluid.set_flags(flags)
用于设置Paddle框架中环境变量FLAGS的值。

参数:
    - **flags** (dict) - 包含想要设置的环境变量FLAGS的名称和值的字典。

**示例代码**

.. code-block:: python

    import paddle.fluid as fluid

    fluid.set_flags({'FLAGS_eager_delete_tensor_gb': 1.0})