message: Fixes a bug in tf.train.Saver(), where classes using the `VARIABLE_VALUE_KEY` used different naming in the checkpoint file when `var_list` was a dict.
diff: @@ -626,7 +626,12 @@ class BaseSaverBuilder(object):
  op, variables.Variable):
  # pylint: disable=protected-access
  for attr, factory in op._gather_saveables_for_checkpoint().items():
  - op = (factory(name + "_" + attr) if callable(factory) else factory)
  + if attr == checkpointable.VARIABLE_VALUE_KEY:
  + # Keep original name for classes masquerading as variables.
  + full_name = name
  + else:
  + full_name = name + "_" + attr
  + op = (factory(full_name) if callable(factory) else factory)
  for op in BaseSaverBuilder.SaveableObjectsForOp(op, op.name):
  yield op
  # pylint: enable=protected-access
  