get_flags

paddle. get_flags ( flags ) [source]

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

Parameters

flags (list|tuple|str) – A list/tuple of string or a string which is the flag’s name.

Returns

flag’s value in Paddle.

Examples

>>> import paddle

>>> flags = ['FLAGS_eager_delete_tensor_gb', 'FLAGS_check_nan_inf']
>>> res = paddle.get_flags(flags)
>>> print(res)
{'FLAGS_eager_delete_tensor_gb': 0.0, 'FLAGS_check_nan_inf': False}