PaddlePaddle 中的环境变量 FLAGS 支持两种设置方式。
- 通过 export 来设置环境变量,如
export FLAGS_eager_delete_tensor_gb = 1.0
。 - 通过 API:
get_flag
和set_flags
来打印和设置环境变量 FLAGS。API 使用详情请参考cn_api_paddle_get_flags
与cn_api_paddle_set_flags
。
cudnn_cn.rst data_cn.rst debug_cn.rst device_cn.rst distributed_cn.rst executor_cn.rst memory_cn.rst npu_cn.rst others_cn.rst