'Must pad timesteps in labels to match logits.'

def testPadLabels2d(self):

    with self.test_session() as sess:
        ph_logits = tf.placeholder(tf.float32, shape=(None, None, 42))
        ph_labels = tf.placeholder(tf.int64, shape=(None, None))
        padded_labels = vgsl_model._PadLabels2d(tf.shape(ph_logits)[1], ph_labels)
        real_logits = _rand(4, 97, 42)
        real_labels = _rand(4, 85)
        np_array = sess.run([padded_labels], feed_dict={ph_logits: real_logits, ph_labels: real_labels})[0]
        self.assertEqual(tuple(np_array.shape), (4, 97))
        real_labels = _rand(4, 97)
        np_array = sess.run([padded_labels], feed_dict={ph_logits: real_logits, ph_labels: real_labels})[0]
        self.assertEqual(tuple(np_array.shape), (4, 97))
        real_labels = _rand(4, 100)
        np_array = sess.run([padded_labels], feed_dict={ph_logits: real_logits, ph_labels: real_labels})[0]
        self.assertEqual(tuple(np_array.shape), (4, 97))
