set_flags

paddle. set_flags ( flags ) [source]

This function sets the GFlags value in Paddle. For FLAGS please refer to FLAGS

Parameters

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

Examples

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