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

Method _fn

tensorflow/contrib/factorization/python/ops/gmm_test.py:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 num_points = points.shape[0]
42
43 def _fn():
44 x = constant_op.constant(points)
45 if batch_size == num_points:
46 return x, None
47 indices = random_ops.random_uniform(constant_op.constant([batch_size]),
48 minval=0, maxval=num_points-1,
49 dtype=dtypes.int32,
50 seed=10)
51 return array_ops.gather(x, indices), None
52 return _fn
53
54 def setUp(self):

Callers

nothing calls this directly

Calls 3

random_uniformMethod · 0.80
constantMethod · 0.45
gatherMethod · 0.45

Tested by

no test coverage detected