MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / test_he_normal

Method test_he_normal

tensorflow/python/ops/init_ops_test.py:160–170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 target_std=std)
159
160 def test_he_normal(self):
161 shape = (5, 6, 4, 2)
162 with self.cached_session():
163 for tensor_shape in [shape, tensor_shape_lib.TensorShape(shape)]:
164 fan_in, _ = init_ops._compute_fans(tensor_shape)
165 std = np.sqrt(2. / fan_in)
166 self._runner(
167 init_ops.he_normal(seed=123),
168 tensor_shape,
169 target_mean=0.,
170 target_std=std)
171
172 def test_Orthogonal(self):
173 shape = (20, 20)

Callers

nothing calls this directly

Calls 2

_runnerMethod · 0.95
cached_sessionMethod · 0.45

Tested by

no test coverage detected