(self)
| 122 | target_std=std) |
| 123 | |
| 124 | def test_he_uniform(self): |
| 125 | shape = (5, 6, 4, 2) |
| 126 | with self.cached_session(): |
| 127 | for tensor_shape in [shape, tensor_shape_lib.TensorShape(shape)]: |
| 128 | fan_in, _ = init_ops._compute_fans(tensor_shape) |
| 129 | std = np.sqrt(2. / fan_in) |
| 130 | self._runner( |
| 131 | init_ops.he_uniform(seed=123), |
| 132 | tensor_shape, |
| 133 | target_mean=0., |
| 134 | target_std=std) |
| 135 | |
| 136 | def test_lecun_normal(self): |
| 137 | shape = (5, 6, 4, 2) |
nothing calls this directly
no test coverage detected