Пример #1
0
 def test_glorot_normal(self):
     tensor_shape = (5, 6, 4, 2)
     with self.cached_session():
         fan_in, fan_out = _compute_fans(tensor_shape)
         std = np.sqrt(2. / (fan_in + fan_out))
         self._runner(initializers.GlorotNormalV2(seed=123),
                      tensor_shape,
                      target_mean=0.,
                      target_std=std)
Пример #2
0
 def test_glorot_normal(self):
     tensor_shape = (5, 6, 4, 2)
     with self.cached_session():
         self._runner(initializers.GlorotNormalV2(seed=123), tensor_shape)