'Tests that the output sizes match when training/running 1 data.
Convolution, summarizing LSTM with fwd rev fwd to allow no CTC.'

def testEndToEndSizes1dFixed(self):

    filename = _testdata('numbers-16-tiny')
    with self.test_session() as sess:
        model = vgsl_model.InitNetwork(filename, model_spec='8,0,0,1[Cr5,5,16    Mp3,3    Lfys16    Lfx64    Lrx64    Lfx64]O1s12', mode='train')
        tf.global_variables_initializer().run(session=sess)
        coord = tf.train.Coordinator()
        tf.train.start_queue_runners(sess=sess, coord=coord)
        (_, step) = model.TrainAStep(sess)
        self.assertEqual(step, 1)
        (output, labels) = model.RunAStep(sess)
        self.assertEqual(len(output.shape), 3)
        self.assertEqual(len(labels.shape), 2)
        self.assertEqual(output.shape[0], labels.shape[0])
        self.assertEqual(output.shape[1], labels.shape[1])
        self.assertEqual(output.shape[2], 12)
