class_docstr: Test Baidu CTC wrapper implementation.
  
  Expected values for costs and gradients are obtained through an external
  C implementation, that uses the library directly.
class_docstr_tok: ["Test","Baidu","CTC","wrapper","implementation",".","Expected","values","for","costs","and","gradients","are","obtained","through","an","external","C","implementation",",","that","uses","the","library","directly","."]
code: def test_ctc(self):
      (
          activations,
          labels,
          input_length,
          expected_costs,
          expected_grads,
      ) = setup_ctc_case()
      self.run_ctc(
          activations,
          labels,
          input_length,
          expected_costs,
          expected_grads,
      )
  
file_path: Theano/theano/tensor/nnet/tests/test_ctc.py
imports: from __future__ import division, absolute_import, print_function
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  import theano
  import theano.tensor
  from theano.tests import unittest_tools
  from theano.tensor.nnet.ctc import ctc_available, ctc, ConnectionistTemporalClassification
label_desc: Use image node_id 5 for calling the TestCTC obj's underlying member method code with example usage: obj.test_ctc() without return types