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

Method test_uniform

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

Source from the content-addressed store, hash-verified

55 self.assertGreater(lim, abs(output.min() - target_min))
56
57 def test_uniform(self):
58 shape = (9, 6, 99)
59 with self.cached_session():
60 for tensor_shape in [shape, tensor_shape_lib.TensorShape(shape)]:
61 self._runner(
62 init_ops.RandomUniform(minval=-1, maxval=1, seed=124),
63 tensor_shape,
64 target_mean=0.,
65 target_max=1,
66 target_min=-1)
67
68 def test_normal(self):
69 shape = (8, 12, 99)

Callers

nothing calls this directly

Calls 2

_runnerMethod · 0.95
cached_sessionMethod · 0.45

Tested by

no test coverage detected