MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _get_modified_flags

Function _get_modified_flags

python/paddle/distributed/parallel.py:978–987  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

976
977
978def _get_modified_flags():
979 ret = []
980 FLAGS = namedtuple('FLAGS', ['name', 'current_value', 'default_value'])
981 global_flags = core.globals()
982 for key in global_flags.keys():
983 value = global_flags.get(key)
984 default_value = global_flags.get_default(key)
985 if not value == default_value:
986 ret.append(FLAGS(key, value, default_value))
987 return ret
988
989
990def _print_modified_flags(modified_flags):

Callers 1

init_parallel_envFunction · 0.85

Calls 4

get_defaultMethod · 0.80
keysMethod · 0.45
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected