def _float_zeros_like(x):
 rval = x.zeros_like()
 if (rval.type.dtype.find('float') != (-1)):
  return rval
 return rval.astype(theano.config.floatX)

def _float_zeros_like ( x ) : rval = x . zeros_like ( ) if ( rval . type . dtype . find ( 'float' ) != ( - 1 ) ) : return rval return rval . astype ( theano . config . floatX )
like zeros_like .