message: Added checkpoint V1 test for SaveRestoreShardedTest
diff: @@ -714,6 +714,8 @@ class SaverTest(test.TestCase):
  class SaveRestoreShardedTest(test.TestCase):
  + _WRITE_VERSION = saver_pb2.SaverDef.V1
  +
  def _get_test_dir(self, dirname):
  test_dir = os.path.join(self.get_temp_dir(), dirname)
  gfile.MakeDirs(test_dir)
  @@ -739,6 +741,7 @@ class SaveRestoreShardedTest(test.TestCase):
  "t0": t0.saveable,
  "t1": t1.saveable
  },
  + write_version=self._WRITE_VERSION,
  sharded=True)
  variables.global_variables_initializer().run()
  t0.insert("k1", 30.0).run()
  @@ -759,7 +762,9 @@ class SaveRestoreShardedTest(test.TestCase):
  with sess.graph.device("/cpu:0"):
  v0 = variables.Variable(111, name="v0")
  t0 = saver_test_utils.CheckpointedOp(name="t0")
  - save = saver_module.Saver({"v0": v0, "t0": t0.saveable}, sharded=True)
  + save = saver_module.Saver({"v0": v0, "t0": t0.saveable},
  + write_version=self._WRITE_VERSION,
  + sharded=True)
  variables.global_variables_initializer().run()
  t0.insert("k11", 33.0).run()
  self.assertEqual(111, v0.eval())
  @@ -777,7 +782,9 @@ class SaveRestoreShardedTest(test.TestCase):
  with sess.graph.device("/cpu:0"):
  v1 = variables.Variable(222)
  t1 = saver_test_utils.CheckpointedOp(name="t1")
  - save = saver_module.Saver({"v1": v1, "t1": t1.saveable}, sharded=True)
  + save = saver_module.Saver({"v1": v1, "t1": t1.saveable},
  + write_version=self._WRITE_VERSION,
  + sharded=True)
  variables.global_variables_initializer().run()
  t1.insert("k22", 44.0).run()
  self.assertEqual(222, v1.eval())
  @@ -805,6 +812,7 @@ class SaveRestoreShardedTest(test.TestCase):
  "t0": t0.saveable,
  "t1": t1.saveable
  },
  + write_version=self._WRITE_VERSION,
  sharded=True)
  variables.global_variables_initializer().run()
  t0.insert("k11", 33.0).run()
  @@ -970,6 +978,10 @@ class SaveRestoreShardedTest(test.TestCase):
  self._testPartitionedVariables(use_resource=True)
  +class SaveRestoreShardedTestV2(SaveRestoreShardedTest):
  + _WRITE_VERSION = saver_pb2.SaverDef.V2
  +
  +
  class MaxToKeepTest(test.TestCase):
  def _get_test_dir(self, dirname):
  