def ortho_weight(ndim):
 W = numpy.random.randn(ndim, ndim)
 (u, _, _) = numpy.linalg.svd(W)
 return u.astype('float32')

def ortho_weight ( ndim ) : W = numpy . random . randn ( ndim , ndim ) ( u , _ , _ ) = numpy . linalg . svd ( W ) return u . astype ( 'float32' )
orthogonal weight init .