def init_tparams(params):
 tparams = OrderedDict()
 for (kk, pp) in params.iteritems():
  tparams[kk] = theano.shared(params[kk], name=kk)
 return tparams

def init_tparams ( params ) : tparams = OrderedDict ( ) for ( kk , pp ) in params . iteritems ( ) : tparams [ kk ] = theano . shared ( params [ kk ] , name = kk ) return tparams
initialize theano shared variables according to the initial parameters .