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

Method test_Ones

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

Source from the content-addressed store, hash-verified

239 init_ops.Zeros(), tensor_shape, target_mean=0., target_max=0.)
240
241 def test_Ones(self):
242 shape = (4, 5)
243 with self.cached_session():
244 for tensor_shape in [shape, tensor_shape_lib.TensorShape(shape)]:
245 self._runner(
246 init_ops.Ones(), tensor_shape, target_mean=1., target_max=1.)
247
248
249if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

_runnerMethod · 0.95
OnesMethod · 0.80
cached_sessionMethod · 0.45

Tested by

no test coverage detected