def test_mod_compile():
 x = tensor.vector()
 y = tensor.vector()
 shape = x.shape
 out = tensor.switch(tensor.eq((3 % x.shape[0]), 0), y, y[:(-1)])
 f = theano.function([x, y], out)

def test_mod_compile ( ) : x = tensor . vector ( ) y = tensor . vector ( ) shape = x . shape out = tensor . switch ( tensor . eq ( ( 3 % x . shape [ 0 ] ) , 0 ) , y , y [ : ( - 1 ) ] ) f = theano . function ( [ x , y ] , out )
this test generate an elemwise of composite as: elemwise{ composite{ composite{ composite{ composite{mod .