<s> import theano . tensor as T <EOL> from . import NeuralLayer <EOL> class Concatenate ( NeuralLayer ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , axis = <NUM_LIT:2> ) : <EOL> """<STR_LIT>""" <EOL> super ( Concatenate , self ) . __init__ ( "<STR_LIT>" ) <EOL> self . axis = axis <EOL> if axis < <NUM_LIT:0> : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> def prepare ( self ) : <EOL> self . output_dim = sum ( self . input_dims ) <EOL> def compute_tensor ( self , * xs ) : <EOL> return T . concatenate ( xs , axis = self . axis ) <EOL> def compute_test_tesnor ( self , * xs ) : <EOL> return T . concatenate ( xs , axis = self . axis ) </s>
