Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad Num Num Num attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If CompareLt NameLoad Num body Return Num If CompareEq NameLoad Num body If CompareEq NameLoad Num body Return SubscriptLoad SubscriptLoad NameLoad Index Num Index AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Return SubscriptLoad SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Index Num orelse Return Num orelse If BoolOpOr CompareEq SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num body Return BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index SubscriptLoad NameLoad Index NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad Num BinOpSub NameLoad Num Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad Num NameLoad orelse Return BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index SubscriptLoad NameLoad Index NameLoad BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad Num BinOpSub NameLoad Num Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad Num BinOpSub NameLoad Num Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpSub NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad BinOpDiv Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd BinOpMult Num NameLoad Num For TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad body AugAssignAdd NameStore UnaryOpUSub Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad BinOpSub NameLoad Num Call NameLoad BinOpSub NameLoad Num Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad BinOpSub NameLoad Num Call NameLoad BinOpSub NameLoad Num AugAssignDiv NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Num Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Num Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Ellipsis Num Assign SubscriptStore AttributeLoad NameLoad attr Ellipsis Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad Num Num Num attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad Num Num Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num attr AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad keyword NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad
N/A N/A math N/A unittest N/A numpy N/A chainer chainer cuda chainer functions chainer gradient_check chainer testing chainer.testing attr chainer.testing condition TestCTC N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self x N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A 4 2 3 astype N/A numpy float32 N/A N/A self t N/A N/A N/A N/A numpy array N/A N/A 0 1 N/A 1 0 astype N/A numpy int32 N/A N/A self l N/A N/A N/A N/A numpy array N/A N/A 2 0 2 1 2 N/A 2 1 2 0 2 astype N/A numpy int32 N/A N/A self blank_symbol 2 N/A N/A self x_length N/A N/A numpy full N/A N/A len N/A N/A self x N/A 0 N/A len N/A self x dtype i N/A N/A self l_length N/A N/A numpy full N/A N/A len N/A self t N/A len N/A N/A self t N/A 0 dtype i N/A N/A self use_length True N/A alpha N/A N/A self x l t u N/A N/A N/A N/A u 0 N/A N/A 0.0 N/A N/A t 0 N/A N/A N/A u 0 N/A N/A N/A N/A x N/A 0 N/A N/A self blank_symbol N/A N/A N/A u 1 N/A N/A N/A N/A x N/A 0 N/A N/A l N/A 1 N/A N/A 0.0 N/A N/A N/A N/A N/A l N/A u N/A self blank_symbol N/A N/A l N/A u N/A l N/A N/A u 2 N/A N/A N/A N/A N/A x N/A t N/A N/A l N/A u N/A N/A N/A self alpha x l N/A t 1 N/A u 1 N/A N/A self alpha x l N/A t 1 u N/A N/A N/A N/A N/A x N/A t N/A N/A l N/A u N/A N/A N/A N/A self alpha x l N/A t 1 N/A u 2 N/A N/A self alpha x l N/A t 1 N/A u 1 N/A N/A self alpha x l N/A t 1 u N/A check_forward N/A N/A self t_data xs_data l_length x_length N/A N/A N/A x N/A tuple N/A N/A N/A chainer Variable x_data N/A x_data xs_data N/A t N/A N/A chainer Variable t_data N/A args N/A x t N/A self blank_symbol N/A N/A self use_length N/A N/A args N/A N/A N/A chainer Variable x_length N/A N/A chainer Variable l_length N/A loss N/A N/A functions connectionist_temporal_classification args N/A loss_value N/A float N/A loss data N/A xp N/A N/A cuda get_array_module N/A self x N/A xt N/A N/A xp swapaxes N/A self x 0 1 N/A b N/A range N/A N/A xt shape N/A 0 N/A N/A t N/A range N/A N/A xt shape N/A 1 N/A N/A N/A N/A xt N/A b N/A t N/A N/A N/A numpy exp N/A N/A xt N/A b N/A t N/A N/A numpy sum N/A N/A numpy exp N/A N/A xt N/A b N/A t N/A loss_expect 0 N/A batch_size N/A N/A xt shape N/A 0 N/A path_length N/A N/A 2 l_length 1 N/A N/A xtb lb xlb plb N/A zip xt N/A self l x_length path_length N/A N/A loss_expect N/A N/A N/A math log N/A N/A N/A self alpha xtb lb N/A int N/A xlb 1 N/A int N/A plb 1 N/A N/A self alpha xtb lb N/A int N/A xlb 1 N/A int N/A plb 2 N/A loss_expect batch_size N/A N/A N/A self assertAlmostEqual loss_expect loss_value places 5 N/A test_forward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A self t N/A tuple N/A self x N/A self l_length N/A self x_length N/A test_forward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A N/A cuda to_gpu N/A self t N/A tuple N/A N/A N/A cuda to_gpu x_data N/A x_data N/A self x N/A N/A cuda to_gpu N/A self l_length N/A N/A cuda to_gpu N/A self x_length N/A N/A attr gpu check_backward N/A N/A self t_data xs_data l_length x_length N/A N/A N/A N/A N/A gradient_check check_backward N/A N/A functions ConnectionistTemporalClassification N/A self blank_symbol N/A N/A x_length l_length t_data xs_data None eps 0.01 atol 0.0001 N/A test_backward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A self t N/A tuple N/A self x N/A self l_length N/A self x_length N/A N/A N/A condition retry 3 test_backward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A N/A cuda to_gpu N/A self t N/A tuple N/A N/A N/A cuda to_gpu x_data N/A x_data N/A self x N/A N/A cuda to_gpu N/A self l_length N/A N/A cuda to_gpu N/A self x_length N/A N/A N/A condition retry 3 N/A attr gpu N/A TestCTCWithoutLength N/A TestCTC N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestCTCWithoutLength self setUp N/A N/A self use_length False N/A N/A TestCTCWithLabelPadding N/A TestCTC N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestCTCWithLabelPadding self setUp N/A N/A N/A self l_length N/A 0 1 N/A N/A TestCTCWithInputPadding N/A TestCTC N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestCTCWithInputPadding self setUp N/A N/A N/A self x_length N/A 0 3 N/A N/A TestCTCWithAllPadding N/A TestCTC N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestCTCWithAllPadding self setUp N/A N/A N/A self x_length N/A 3 N/A N/A N/A self l_length N/A 1 N/A N/A TestCTCBlankSymbol N/A TestCTC N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestCTCBlankSymbol self setUp N/A N/A self x N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A 4 2 4 astype N/A numpy float32 N/A N/A self l N/A N/A N/A N/A numpy array N/A N/A 3 0 3 1 3 N/A 3 1 3 0 3 astype N/A numpy int32 N/A N/A self blank_symbol 3 N/A N/A TestCTCUseVolatile N/A N/A unittest TestCase N/A test_volatile N/A N/A self N/A N/A N/A xs_data N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A 4 2 3 astype N/A numpy float32 N/A t_data N/A N/A N/A N/A numpy array N/A N/A 0 1 N/A 1 0 astype N/A numpy int32 N/A x N/A N/A N/A chainer Variable x_data volatile True N/A x_data xs_data N/A t N/A N/A chainer Variable t_data volatile True N/A N/A N/A functions connectionist_temporal_classification x t 2 N/A N/A TestCTCError N/A N/A unittest TestCase N/A test_not_iterable N/A N/A self N/A N/A N/A x N/A N/A chainer Variable N/A N/A numpy zeros N/A 4 2 3 N/A numpy float32 N/A t N/A N/A chainer Variable N/A N/A numpy zeros N/A 2 2 N/A numpy int32 N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A functions connectionist_temporal_classification x t 0 N/A N/A N/A N/A N/A testing run_module __name__ __file__