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

Method test_he_uniform

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

_runnerMethod · 0.95
cached_sessionMethod · 0.45

Tested by

no test coverage detected