set_flags

paddle.fluid.set_flags(flags)[source]

This function sets the GFlags value in Paddle.

Parameters

flags (dict) – A dict contains flags and its value.

Examples

import paddle.fluid as fluid
fluid.set_flags({'FLAGS_eager_delete_tensor_gb': 1.0})