def matrix_dot(*args):
 rval = args[0]
 for a in args[1:]:
  rval = theano.tensor.dot(rval, a)
 return rval

def matrix_dot ( * args ) : rval = args [ 0 ] for a in args [ 1 : ] : rval = theano . tensor . dot ( rval , a ) return rval
shorthand for product between several dots .