message: Remove the nondeterminism from a test for initializing variables from checkpoints.
diff: @@ -158,23 +158,23 @@ class CheckpointsTest(test.TestCase):
  "some_scope", initializer=init_ops.zeros_initializer()):
  my1 = variable_scope.get_variable("my1", [1, 10])
  - # At this point, my1.initialized_value() will add ops that reference
  - # the zeros initializer of my1.
  - before = variables.Variable(my1.initialized_value(), name="before")
  + before = my1.initialized_value()
  checkpoint_utils.init_from_checkpoint(checkpoint_dir, {"var1": my1})
  - # At this point, my1.initialized_value() will add ops that reference
  - # the newly set initializer of my1.
  - after = variables.Variable(my1.initialized_value(), name="after")
  + after = my1.initialized_value()
  +
  + self.assertAllEqual(session.run(before), [[0.0] * 10])
  + self.assertAllEqual(session.run(after), v1)
  session.run(variables.global_variables_initializer())
  +
  self.assertAllEqual(session.run(my1), v1)
  self.assertAllEqual(session.run(my1.initialized_value()), v1)
  - self.assertAllClose(session.run(before), [[0.0] * 10])
  + self.assertAllClose(session.run(before), v1)
  self.assertAllClose(session.run(after), v1)
  with self.assertRaises(AssertionError):
  - self.assertAllClose(session.run(before), session.run(after))
  + self.assertAllClose(v1, [[0.0] * 10])
  def testInitWithScopeDoesNotCaptureSuffixes(self):
  checkpoint_dir = self.get_temp_dir()
  