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

Method _sample_n

tensorflow/python/ops/distributions/uniform.py:170–175  ·  view source on GitHub ↗
(self, n, seed=None)

Source from the content-addressed store, hash-verified

168 return tensor_shape.TensorShape([])
169
170 def _sample_n(self, n, seed=None):
171 shape = array_ops.concat([[n], self.batch_shape_tensor()], 0)
172 samples = random_ops.random_uniform(shape=shape,
173 dtype=self.dtype,
174 seed=seed)
175 return self.low + self.range() * samples
176
177 def _prob(self, x):
178 broadcasted_x = x * array_ops.ones(

Callers

nothing calls this directly

Calls 4

rangeMethod · 0.95
random_uniformMethod · 0.80
concatMethod · 0.45
batch_shape_tensorMethod · 0.45

Tested by

no test coverage detected