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

Method get

tensorflow/compiler/xla/tests/test_utils.h:45–49  ·  view source on GitHub ↗

Get a pseudorandom value.

Source from the content-addressed store, hash-verified

43
44 // Get a pseudorandom value.
45 NativeT get() {
46 std::uniform_real_distribution<> distribution;
47 return static_cast<NativeT>(min_ +
48 (max_ - min_) * distribution(generator_));
49 }
50
51 private:
52 NativeT min_;

Callers 15

ShapeTreeMethod · 0.45
dataMethod · 0.45
ReadAllLinesMethod · 0.45
TEST_FFunction · 0.45
UnwrappingIteratorClass · 0.45
operator*Method · 0.45
operator->Method · 0.45
LiteralMethod · 0.45
literal.ccFile · 0.45
MoveFromMethod · 0.45
PopulateR1Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected