def local_flag_settings(as_dict=False):
  """Get the current tf.flags.FLAGS settings."""
  module_dict = FLAGS.flags_by_module_dict()
  d = dict((x.name, x.value) for x in module_dict[sys.argv[0]])
  if as_dict:
    return d
  else:
    return dict2string(d)
Get the current tf.flags.FLAGS settings.
language/nql/demos/gridworld_scaling/scaling_eval.py