Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore DictComp NameLoad IfExp CompareEq AttributeLoad NameLoad attr Num SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Slice Index NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If NameLoad body Assign NameStore Call NameLoad BinOpMult ListLoad NameLoad Call NameLoad NameLoad BinOpAdd ListLoad AttributeLoad NameLoad attr NameLoad keyword Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad keyword Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore DictComp NameLoad IfExp CompareEq AttributeLoad NameLoad attr Num SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Slice Index NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num Num NameLoad NameLoad Num kwarg body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Str NameLoad If UnaryOpNot NameLoad body Assign NameStore BinOpMult ListLoad Num Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num If NameLoad body Assign NameStore Call NameLoad ListLoad Call NameLoad BinOpAdd BinOpAdd ListLoad NameLoad NameLoad ListLoad NameLoad keyword Str orelse Assign NameStore Call NameLoad keyword Str If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad keyword Str orelse Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad keyword Call AttributeLoad Str attr NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad If CompareEq NameLoad Str body Assign NameStore Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword Str orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore Call NameLoad BinOpAdd NameLoad Num IfExp CompareIs NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad BinOpAdd NameLoad Num If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword Str If NameLoad body Assign NameStore Call NameLoad orelse If Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Call AttributeLoad NameLoad attr Str Num keyword Str orelse Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword NameLoad keyword BinOpAdd IfExp NameLoad AttributeLoad AttributeLoad NameLoad attr attr ListLoad ListLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num keyword NameLoad keyword NameLoad keyword Str If NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad ListLoad AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr AttributeLoad Call NameLoad BinOpAdd BinOpMult ListLoad NameLoad BinOpSub Call NameLoad NameLoad Num ListLoad Call NameLoad BinOpAdd ListComp BinOpFloorDiv NameLoad Call NameLoad NameLoad Str Num comprehension NameStore NameLoad ListLoad NameLoad attr keyword Str Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareLt BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword IfExp CompareIsNot NameLoad NameLoad NameLoad AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str body Assign TupleStore NameStore Call Call NameLoad keyword Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad ExtSlice Slice Index NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore Call Call NameLoad keyword ListLoad AttributeLoad NameLoad attr keyword Str NameLoad Assign NameStore Call Call NameLoad keyword ListLoad AttributeLoad NameLoad attr keyword Str NameLoad Assign NameStore ListLoad IfExp NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num ExtSlice Slice Index Num Slice Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore Call Call NameLoad keyword ListLoad AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad NameLoad keyword Str NameLoad Assign NameStore ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd ListLoad SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Slice NameLoad NameLoad keyword Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd Call NameLoad NameLoad Str CompareEq AttributeLoad NameLoad attr NameLoad body Return Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign TupleStore NameStore Call Call NameLoad keyword ListLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExtSlice Slice Index AttributeLoad NameLoad attr Ellipsis If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index Str IfExp CompareIsNot NameLoad NameLoad NameLoad Call NameLoad BinOpDiv Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore ListLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Delete AttributeDel NameLoad attr handlers ExceptHandler body Pass decorator_list decorator_list
N/A N/A numpy N/A theano N/A logging theano tensor blocks.bricks Bias Identity Initializable MLP Tanh blocks.bricks.attention SequenceContentAttention blocks.bricks.base application blocks.bricks.recurrent BaseRecurrent RecurrentStack blocks.bricks.sequence_generators SequenceGenerator Readout SoftmaxEmitter LookupFeedback blocks.bricks.lookup LookupTable blocks.graph ComputationGraph blocks.model Model blocks.filter VariableFilter blocks.roles OUTPUT blocks.search BeamSearch blocks.serialization load_parameters lvsr.bricks Encoder OneOfNFeedback InitializableSequence RewardRegressionEmitter lvsr.bricks.attention SequenceContentAndConvAttention lvsr.bricks.language_models LanguageModel LMEmitter ShallowFusionReadout lvsr.utils global_push_initialization_config N/A logger N/A N/A logging getLogger __name__ Bottom N/A Initializable N/A N/A 
    A bottom class that mergers possibly many input sources into one
    sequence.

    The bottom is responsible for allocating variables for single and
    multiple sequences in a batch.

    In speech recognition this will typically be the identity transformation
    ro a small MLP.

    Attributes
    ----------
    vector_input_sources : list of str
    discrete_input_sources : list of str

    Parameters
    ----------
    input_dims : dict
        Maps input source to their dimensions, only for vector sources.
    input_num_chars : dict
        Maps input source to their range of values, only for discrete sources.

     N/A vector_input_sources N/A N/A discrete_input_sources N/A __init__ N/A N/A self input_dims input_num_chars N/A kwargs N/A N/A N/A N/A N/A super Bottom self __init__ kwargs N/A N/A self input_dims input_dims N/A N/A self input_num_chars input_num_chars N/A N/A LookupBottom N/A Bottom N/A N/A discrete_input_sources N/A inputs __init__ N/A N/A self dim N/A kwargs N/A N/A N/A N/A N/A super LookupBottom self __init__ kwargs N/A N/A self dim dim N/A N/A self mask N/A N/A tensor matrix inputs_mask N/A N/A self batch_inputs N/A inputs N/A N/A tensor lmatrix inputs N/A N/A self single_inputs N/A inputs N/A N/A tensor lvector inputs N/A N/A self children N/A N/A LookupTable N/A N/A self input_num_chars N/A inputs N/A self dim N/A apply N/A N/A self inputs N/A N/A N/A N/A N/A N/A N/A self children N/A 0 apply inputs N/A N/A application inputs N/A inputs outputs N/A outputs batch_size N/A N/A self inputs N/A N/A N/A N/A N/A inputs shape N/A 1 N/A num_time_steps N/A N/A self inputs N/A N/A N/A N/A N/A inputs shape N/A 0 N/A single_to_batch_inputs N/A N/A self inputs N/A N/A N/A inputs N/A n N/A N/A N/A v ndim 2 N/A v N/A N/A N/A None N/A N/A v N/A N/A N/A None N/A N/A n v N/A N/A inputs items N/A inputs_mask N/A N/A tensor ones N/A N/A N/A self num_time_steps inputs N/A N/A self batch_size inputs N/A N/A inputs inputs_mask N/A get_dim N/A N/A self name N/A N/A N/A N/A name outputs N/A N/A N/A self dim N/A N/A N/A N/A super LookupBottom self get_dim name N/A N/A SpeechBottom N/A Bottom N/A N/A 
    A Bottom specialized for speech recognition that accets only one input
    - the recordings.
     N/A vector_input_sources N/A recordings __init__ N/A N/A self activation dims N/A None kwargs N/A N/A N/A N/A N/A super SpeechBottom self __init__ kwargs N/A N/A self num_features N/A N/A self input_dims N/A recordings N/A N/A activation None N/A N/A activation N/A Tanh N/A dims N/A N/A child N/A MLP N/A N/A activation N/A len dims N/A N/A N/A self num_features dims name bottom N/A N/A self output_dim N/A child output_dim N/A N/A child N/A Identity name bottom N/A N/A self output_dim N/A self num_features N/A N/A N/A N/A self children append child N/A N/A self mask N/A N/A tensor matrix recordings_mask N/A N/A self batch_inputs N/A recordings N/A N/A tensor tensor3 recordings N/A N/A self single_inputs N/A recordings N/A N/A tensor matrix recordings N/A apply N/A N/A self recordings N/A N/A N/A N/A N/A N/A N/A self children N/A 0 apply recordings N/A N/A application inputs N/A recordings outputs N/A outputs batch_size N/A N/A self recordings N/A N/A N/A N/A N/A recordings shape N/A 1 N/A num_time_steps N/A N/A self recordings N/A N/A N/A N/A N/A recordings shape N/A 0 N/A single_to_batch_inputs N/A N/A self inputs N/A N/A N/A inputs N/A n N/A N/A N/A v ndim 2 N/A v N/A N/A N/A None N/A N/A v N/A N/A N/A None N/A N/A n v N/A N/A inputs items N/A inputs_mask N/A N/A tensor ones N/A N/A N/A self num_time_steps inputs N/A N/A self batch_size inputs N/A N/A inputs inputs_mask N/A get_dim N/A N/A self name N/A N/A N/A N/A name outputs N/A N/A N/A self output_dim N/A N/A N/A N/A super SpeechBottom self get_dim name N/A N/A SpeechRecognizer N/A Initializable N/A N/A Encapsulate all reusable logic.

    This class plays a few roles: (a) it's a top brick that knows
    how to combine bottom, bidirectional and recognizer network, (b)
    it has the inputs variables and can build whole computation graphs
    starting with them (c) it hides compilation of Theano functions
    and initialization of beam search. I find it simpler to have it all
    in one place for research code.

    Parameters
    ----------
    All defining the structure and the dimensions of the model. Typically
    receives everything from the "net" section of the config.

     __init__ N/A N/A self input_dims input_num_chars eos_label num_phonemes dim_dec dims_bidir enc_transition dec_transition use_states_for_readout attention_type criterion bottom lm character_map bidir subsample dims_top prior conv_n post_merge_activation post_merge_dims dim_matcher embed_outputs dim_output_embedding dec_stack conv_num_filters data_prepend_eos energy_normalizer max_decoded_length_scale N/A None None True None None None None None None None True None 1 1 True None 1 kwargs N/A N/A N/A post_merge_activation None N/A N/A post_merge_activation N/A Tanh N/A N/A N/A N/A super SpeechRecognizer self __init__ kwargs N/A N/A self eos_label eos_label N/A N/A self data_prepend_eos data_prepend_eos N/A N/A self rec_weights_init None N/A N/A self initial_states_init None N/A N/A self enc_transition enc_transition N/A N/A self dec_transition dec_transition N/A N/A self dec_stack dec_stack N/A N/A self criterion criterion N/A N/A self max_decoded_length_scale max_decoded_length_scale N/A post_merge_activation post_merge_activation N/A N/A dim_matcher None N/A N/A dim_matcher dim_dec N/A bottom_class N/A N/A bottom pop bottom_class N/A bottom N/A bottom_class input_dims input_dims input_num_chars input_num_chars name bottom bottom N/A N/A subsample N/A N/A subsample N/A N/A 1 N/A len dims_bidir N/A encoder N/A Encoder N/A self enc_transition dims_bidir N/A N/A bottom get_dim N/A N/A N/A bottom apply outputs N/A 0 subsample bidir bidir N/A dim_encoded N/A N/A encoder get_dim N/A N/A N/A encoder apply outputs N/A 0 N/A dims_top N/A N/A top N/A MLP N/A N/A Tanh N/A N/A N/A dim_encoded dims_top N/A dim_encoded name top N/A N/A top N/A Identity name top N/A N/A dec_stack 1 N/A N/A transition N/A N/A self dec_transition dim dim_dec activation N/A Tanh name transition N/A N/A transitions N/A N/A N/A self dec_transition dim dim_dec activation N/A Tanh name N/A N/A transition_{} format trans_level N/A trans_level N/A xrange dec_stack N/A transition N/A RecurrentStack transitions transitions skip_connections True N/A N/A attention_type content N/A N/A attention N/A SequenceContentAttention state_names N/A N/A transition apply states attended_dim dim_encoded match_dim dim_matcher name cont_att N/A N/A N/A attention_type content_and_conv N/A N/A attention N/A SequenceContentAndConvAttention state_names N/A N/A transition apply states conv_n conv_n conv_num_filters conv_num_filters attended_dim dim_encoded match_dim dim_matcher prior prior energy_normalizer energy_normalizer name conv_att N/A N/A N/A ValueError N/A N/A Unknown attention type {} format attention_type N/A embed_outputs N/A N/A feedback N/A LookupFeedback N/A num_phonemes 1 N/A N/A dim_output_embedding None dim_dec dim_output_embedding N/A N/A feedback N/A OneOfNFeedback N/A num_phonemes 1 N/A N/A N/A criterion N/A name log_likelihood N/A N/A emitter N/A SoftmaxEmitter initial_output num_phonemes name emitter N/A lm N/A N/A emitter N/A LMEmitter N/A N/A N/A N/A N/A criterion N/A name startswith mse N/A N/A emitter N/A RewardRegressionEmitter N/A criterion N/A name eos_label num_phonemes N/A N/A criterion get min_reward -1.0 name emitter N/A N/A N/A ValueError N/A N/A Unknown criterion {} format N/A criterion N/A name N/A readout_config N/A dict readout_dim num_phonemes source_names N/A N/A use_states_for_readout N/A N/A transition apply states N/A N/A N/A N/A N/A attention take_glimpses outputs N/A 0 emitter emitter feedback_brick feedback name readout N/A post_merge_dims N/A N/A N/A readout_config N/A merged_dim N/A post_merge_dims N/A 0 N/A N/A readout_config N/A post_merge N/A InitializableSequence N/A N/A N/A Bias N/A post_merge_dims N/A 0 apply N/A post_merge_activation apply N/A N/A MLP N/A N/A N/A post_merge_activation N/A N/A len post_merge_dims 1 N/A N/A Identity N/A N/A N/A d N/A getattr post_merge_activation num_pieces 1 N/A d post_merge_dims N/A num_phonemes apply name post_merge N/A readout N/A Readout readout_config N/A language_model None N/A N/A lm N/A N/A lm get path N/A N/A lm_weight N/A N/A lm pop weight 0.0 N/A normalize_am_weights N/A N/A lm pop normalize_am_weights True N/A normalize_lm_weights N/A N/A lm pop normalize_lm_weights False N/A normalize_tot_weights N/A N/A lm pop normalize_tot_weights False N/A am_beta N/A N/A lm pop am_beta 1.0 N/A N/A N/A N/A normalize_am_weights normalize_lm_weights normalize_tot_weights 1 N/A N/A N/A N/A logger warn Beam search is prone to fail with no log-prob normalization N/A language_model N/A LanguageModel nn_char_map character_map lm N/A readout N/A ShallowFusionReadout lm_costs_name lm_add lm_weight lm_weight normalize_am_weights normalize_am_weights normalize_lm_weights normalize_lm_weights normalize_tot_weights normalize_tot_weights am_beta am_beta readout_config N/A generator N/A SequenceGenerator readout readout transition transition attention attention language_model language_model name generator N/A N/A self encoder encoder N/A N/A self bottom bottom N/A N/A self top top N/A N/A self generator generator N/A N/A self children N/A encoder top bottom generator N/A N/A self inputs N/A N/A self bottom batch_inputs N/A N/A self inputs_mask N/A N/A self bottom mask N/A N/A self labels N/A N/A tensor lmatrix labels N/A N/A self labels_mask N/A N/A tensor matrix labels_mask N/A N/A self single_inputs N/A N/A self bottom single_inputs N/A N/A self single_labels N/A N/A tensor lvector labels N/A N/A self n_steps N/A N/A tensor lscalar n_steps N/A push_initialization_config N/A N/A self N/A N/A N/A N/A N/A N/A super SpeechRecognizer self push_initialization_config N/A N/A self rec_weights_init N/A N/A rec_weights_config N/A weights_init recurrent_weights_init N/A self rec_weights_init N/A self rec_weights_init N/A N/A global_push_initialization_config self rec_weights_config BaseRecurrent N/A N/A self initial_states_init N/A N/A N/A global_push_initialization_config self N/A initial_states_init N/A self initial_states_init N/A cost N/A N/A self N/A kwargs N/A N/A inputs_mask N/A N/A kwargs pop inputs_mask N/A labels N/A N/A kwargs pop labels N/A labels_mask N/A N/A kwargs pop labels_mask N/A bottom_processed N/A N/A N/A self bottom apply kwargs N/A N/A encoded encoded_mask N/A N/A N/A self encoder apply input_ bottom_processed mask inputs_mask N/A encoded N/A N/A N/A self top apply encoded N/A N/A N/A N/A self generator cost_matrix labels labels_mask attended encoded attended_mask encoded_mask N/A application generate N/A N/A self N/A kwargs N/A N/A inputs_mask N/A N/A kwargs pop inputs_mask N/A n_steps N/A N/A kwargs pop n_steps N/A N/A encoded encoded_mask N/A N/A N/A self encoder apply input_ N/A N/A N/A self bottom apply kwargs mask inputs_mask N/A encoded N/A N/A N/A self top apply encoded N/A N/A N/A N/A self generator generate n_steps N/A N/A n_steps None n_steps N/A self n_steps batch_size N/A N/A encoded shape N/A 1 attended encoded attended_mask encoded_mask as_dict True N/A application load_params N/A N/A self path N/A N/A N/A generated N/A N/A self get_generate_graph N/A N/A open path r src N/A N/A param_values N/A load_parameters src N/A N/A N/A N/A Model N/A generated N/A outputs set_parameter_values param_values N/A get_generate_graph N/A N/A self use_mask n_steps N/A True None N/A N/A inputs_mask None N/A use_mask N/A N/A inputs_mask N/A self inputs_mask N/A bottom_inputs N/A self inputs N/A N/A N/A self generate n_steps n_steps inputs_mask inputs_mask bottom_inputs N/A get_cost_graph N/A N/A self batch prediction prediction_mask N/A True None None N/A N/A batch N/A N/A inputs N/A self inputs N/A inputs_mask N/A self inputs_mask N/A groundtruth N/A self labels N/A groundtruth_mask N/A self labels_mask N/A N/A N/A inputs inputs_mask N/A N/A N/A self bottom single_to_batch_inputs N/A self single_inputs N/A groundtruth N/A N/A self single_labels N/A N/A N/A None N/A groundtruth_mask None N/A N/A prediction N/A N/A prediction groundtruth N/A N/A prediction_mask N/A N/A prediction_mask groundtruth_mask N/A cost N/A N/A self cost inputs_mask inputs_mask labels prediction labels_mask prediction_mask inputs N/A cost_cg N/A ComputationGraph cost N/A N/A N/A N/A N/A self criterion N/A name startswith mse N/A N/A N/A placeholder N/A N/A VariableFilter theano_name groundtruth cost_cg N/A cost_cg N/A N/A cost_cg replace N/A placeholder groundtruth N/A cost_cg N/A analyze N/A N/A self inputs groundtruth prediction N/A None N/A N/A Compute cost and aligment. N/A input_values_dict N/A dict inputs N/A N/A input_values_dict N/A groundtruth groundtruth N/A N/A prediction None N/A N/A N/A input_values_dict N/A prediction prediction N/A N/A N/A hasattr self _analyze N/A N/A input_variables N/A list N/A N/A N/A self single_inputs values N/A N/A N/A input_variables append N/A N/A N/A self single_labels copy name groundtruth N/A prediction_variable N/A N/A tensor lvector prediction N/A N/A prediction None N/A N/A N/A N/A input_variables append prediction_variable N/A cg N/A N/A self get_cost_graph batch False prediction N/A prediction_variable N/A N/A N/A None N/A N/A cg N/A N/A self get_cost_graph batch False N/A cost N/A N/A cg outputs N/A 0 N/A N/A weights N/A N/A VariableFilter bricks N/A N/A self generator name weights cg N/A energies N/A N/A VariableFilter bricks N/A N/A self generator name energies cg N/A energies_output N/A N/A energies N/A N/A energies N/A 0 N/A N/A N/A 0 N/A N/A N/A tensor zeros_like weights N/A N/A states N/A N/A VariableFilter applications N/A N/A N/A self encoder apply roles N/A OUTPUT name encoded cg N/A ctc_matrix_output N/A N/A N/A self _analyze N/A N/A theano function input_variables N/A N/A N/A N/A cost N/A N/A N/A 0 N/A weights N/A N/A N/A 0 N/A energies_output ctc_matrix_output on_unused_input warn N/A N/A N/A self _analyze input_values_dict N/A init_beam_search N/A N/A self beam_size N/A N/A N/A Compile beam search and set the beam size.

        See Blocks issue #500.

         N/A N/A N/A hasattr self _beam_search N/A N/A self beam_size beam_size N/A N/A N/A N/A self beam_size beam_size N/A generated N/A N/A self get_generate_graph use_mask False n_steps 3 N/A cg N/A ComputationGraph N/A N/A generated values N/A N/A samples N/A N/A VariableFilter applications N/A N/A N/A self generator generate name outputs cg N/A N/A self _beam_search N/A BeamSearch beam_size samples N/A N/A N/A N/A self _beam_search compile N/A beam_search N/A N/A self inputs N/A kwargs N/A N/A N/A N/A self init_beam_search N/A self beam_size N/A inputs N/A dict inputs N/A max_length N/A int N/A N/A N/A N/A self bottom num_time_steps inputs N/A self max_decoded_length_scale N/A search_inputs N/A N/A var N/A N/A N/A self inputs values N/A N/A N/A search_inputs N/A var N/A N/A N/A inputs pop N/A var name N/A N/A N/A N/A numpy newaxis N/A N/A inputs N/A N/A N/A Exception N/A N/A Unknown inputs passed to beam search: {} format N/A N/A inputs keys N/A N/A outputs search_costs N/A N/A N/A self _beam_search search search_inputs N/A self eos_label max_length ignore_first_eol N/A self data_prepend_eos kwargs N/A N/A outputs search_costs N/A init_generate N/A N/A self N/A N/A N/A generated N/A N/A self get_generate_graph use_mask False N/A cg N/A ComputationGraph N/A generated N/A outputs N/A N/A self _do_generate N/A N/A cg get_theano_function N/A sample N/A N/A self inputs n_steps N/A None N/A N/A N/A N/A hasattr self _do_generate N/A N/A N/A N/A self init_generate N/A N/A batch unused_mask N/A N/A N/A self bottom single_to_batch_inputs inputs N/A N/A batch N/A n_steps N/A N/A n_steps None n_steps N/A int N/A N/A N/A N/A self bottom num_time_steps batch N/A self max_decoded_length_scale N/A N/A N/A N/A self _do_generate batch N/A 0 N/A __getstate__ N/A N/A self N/A N/A N/A state N/A dict N/A self __dict__ N/A attr N/A _analyze _beam_search N/A N/A N/A N/A state pop attr None N/A state N/A __setstate__ N/A N/A self state N/A N/A N/A N/A N/A N/A self __dict__ update state N/A N/A N/A emitter N/A N/A N/A self generator readout emitter N/A N/A emitter _theano_rng N/A N/A N/A N/A N/A N/A