Every line of 'kernel initializer keras' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
21 def __init__(self, eps_std=0.05, seed=None): 22 self.eps_std = eps_std 23 self.seed = seed 24 self.orthogonal = Orthogonal()
26 def W_init(shape,name=None): 27 """Initialize weights as in paper""" 28 values = rng.normal(loc=0,scale=1e-2,size=shape) 29 return K.variable(values,name=name)
39 def my_init(shape, name=None): 40 return initializations.normal(shape, scale=0.1, name=name)
10 def init(in_feats, kernel_size=3): 11 std = 1./math.sqrt(in_feats*(kernel_size**2)) 12 return tf.random_uniform_initializer(-std, std)