def testZeroSizeVarInitialized(self):
    with ops.Graph().as_default(), self.cached_session() as sess:
        v = variables.Variable(array_ops.zeros([0, 2]), name='v')
        uninited = variables.report_uninitialized_variables()
        v.initializer.run()
        self.assertEqual(0, self.evaluate(uninited).size)
def testZeroSizeVarInitialized(self):
    with ops.Graph().as_default(), self.cached_session() as sess:
        v = variables.Variable(array_ops.zeros([0, 2]), name='v')
        uninited = variables.report_uninitialized_variables()
        v.initializer.run()
        self.assertEqual(0, self.evaluate(uninited).size)