def lecun_uniform(shape, name=None, dim_ordering='th'):
 (fan_in, fan_out) = get_fans(shape, dim_ordering=dim_ordering)
 scale = np.sqrt((3.0 / fan_in))
 return uniform(shape, scale, name=name)

def lecun_uniform ( shape , name = None , dim_ordering = 'th' ) : ( fan_in , fan_out ) = get_fans ( shape , dim_ordering = dim_ordering ) scale = np . sqrt ( ( 3.0 / fan_in ) ) return uniform ( shape , scale , name = name )
lecun uniform variance scaling initializer .