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

Method test_constant

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

Source from the content-addressed store, hash-verified

87 target_min=-2)
88
89 def test_constant(self):
90 shape = (5, 6, 4)
91 with self.cached_session():
92 for tensor_shape in [shape, tensor_shape_lib.TensorShape(shape)]:
93 self._runner(
94 init_ops.Constant(2),
95 tensor_shape,
96 target_mean=2,
97 target_max=2,
98 target_min=2)
99
100 def test_lecun_uniform(self):
101 shape = (5, 6, 4, 2)

Callers

nothing calls this directly

Calls 3

_runnerMethod · 0.95
cached_sessionMethod · 0.45
ConstantMethod · 0.45

Tested by

no test coverage detected