These FLAGS in PaddlePaddle can be set in two ways.
Set the FLAGS through export. For example: exportFLAGS_eager_delete_tensor_gb=1.0 .
Through get_flags and set_flags to print and set the environment variables. For more information of using these API, please refer to get_flags and get_flags .