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

Method random_uniform

tensorflow/python/ops/init_ops_v2.py:793–800  ·  view source on GitHub ↗

A deterministic random uniform if seed is passed.

(self, shape, minval, maxval, dtype)

Source from the content-addressed store, hash-verified

791 shape=shape, mean=mean, stddev=stddev, dtype=dtype, seed=self.seed)
792
793 def random_uniform(self, shape, minval, maxval, dtype):
794 """A deterministic random uniform if seed is passed."""
795 if self.seed:
796 op = stateless_random_ops.stateless_random_uniform
797 else:
798 op = random_ops.random_uniform
799 return op(
800 shape=shape, minval=minval, maxval=maxval, dtype=dtype, seed=self.seed)
801
802 def truncated_normal(self, shape, mean, stddev, dtype):
803 """A deterministic truncated normal if seed is passed."""

Callers 15

testSyntheticDatasetMethod · 0.80
setUpMethod · 0.80
test_training_graphMethod · 0.80
random_batchFunction · 0.80
benchmark_generateMethod · 0.80
train_one_epochFunction · 0.80
random_datasetFunction · 0.80

Calls 1

opFunction · 0.70

Tested by 15

testSyntheticDatasetMethod · 0.64
setUpMethod · 0.64
test_training_graphMethod · 0.64
random_batchFunction · 0.64
benchmark_generateMethod · 0.64
random_datasetFunction · 0.64