deepvariant/testing/flagsaver.py
def SaveFlagValues():
  """Returns copy of flag values as a dict.

  Returns:
    Dictionary mapping keys to values. Keys are flag names, values are
    corresponding __dict__ members. E.g. {'key': value_dict, ...}.
  """
  if hasattr(flags, '_FlagValues'):  # pylint:disable=protected-access
    # In OSS code we use tensorflow/python/platform/flags.py:_FlagValues
    # which is not iterable.
    flag_dict = FLAGS.__dict__['__flags']
    # Make a shallow copy of the flags.
    return {name: flag_dict[name] for name in flag_dict}
  else:
    # FLAGS is iterable and provides __getitem__.
    return {name: _CopyFlagDict(FLAGS[name]) for name in FLAGS}
Returns copy of flag values as a dict.

  Returns:
    Dictionary mapping keys to values. Keys are flag names, values are
    corresponding __dict__ members. E.g. {'key': value_dict, ...}.
  
Returns copy of flag values as a dict.
Returns copy of flag values as a dict .
def SaveFlagValues():
  if hasattr(flags, '_FlagValues'):  
    flag_dict = FLAGS.__dict__['__flags']
    return {name: flag_dict[name] for name in flag_dict}
  else:
    return {name: _CopyFlagDict(FLAGS[name]) for name in FLAGS}
def SaveFlagValues ( ) : if hasattr ( flags , '_FlagValues' ) : flag_dict = FLAGS . __dict__ [ '__flags' ] return { name : flag_dict [ name ] for name in flag_dict } else : return { name : _CopyFlagDict ( FLAGS [ name ] ) for name in FLAGS }
Returns copy of flag values as a dict.
Returns copy of flag values as a dict .
"""Returns copy of flag values as a dict.

  Returns:
    Dictionary mapping keys to values. Keys are flag names, values are
    corresponding __dict__ members. E.g. {'key': value_dict, ...}.
  """ # pylint:disable=protected-access # In OSS code we use tensorflow/python/platform/flags.py:_FlagValues # which is not iterable. # Make a shallow copy of the flags. # FLAGS is iterable and provides __getitem__.
Dictionary mapping keys to values. Keys are flag names, values are
corresponding __dict__ members. E.g.
Dictionary mapping keys to values . Keys are flag names values are corresponding __dict__ members . E . g .