@test_util.run_deprecated_v1
def testLoad(self):
    with self.cached_session():
        var = variables.Variable(np.zeros((5, 5), np.float32))
        self.evaluate(variables.global_variables_initializer())
        var.load(np.ones((5, 5), np.float32))
        self.assertAllClose(np.ones((5, 5), np.float32), self.evaluate(var))
@test_util.run_deprecated_v1
def testLoad(self):
    with self.cached_session():
        var = variables.Variable(np.zeros((5, 5), np.float32))
        self.evaluate(variables.global_variables_initializer())
        var.load(np.ones((5, 5), np.float32))
        self.assertAllClose(np.ones((5, 5), np.float32), self.evaluate(var))