Esempio n. 1
0
 def test_lecun_uniform(self):
     tensor_shape = (5, 6, 4, 2)
     with self.cached_session():
         fan_in, _ = init_ops._compute_fans(tensor_shape)
         std = np.sqrt(1. / fan_in)
         self._runner(init_ops.lecun_uniform(seed=123),
                      tensor_shape,
                      target_mean=0.,
                      target_std=std)
Esempio n. 2
0
 def test_lecun_uniform(self):
   tensor_shape = (5, 6, 4, 2)
   with self.cached_session():
     fan_in, _ = init_ops._compute_fans(tensor_shape)
     std = np.sqrt(1. / fan_in)
     self._runner(
         init_ops.lecun_uniform(seed=123),
         tensor_shape,
         target_mean=0.,
         target_std=std)