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

Function Uint32sToUint64

tensorflow/compiler/xla/client/lib/prng.cc:130–135  ·  view source on GitHub ↗

Converts two uint32s to a uint64.

Source from the content-addressed store, hash-verified

128
129// Converts two uint32s to a uint64.
130XlaOp Uint32sToUint64(std::array<XlaOp, 2> u32s) {
131 XlaBuilder* builder = u32s[0].builder();
132 return ConvertElementType(u32s[0], U64) |
133 ShiftLeft(ConvertElementType(u32s[1], U64),
134 ConstantR0WithType(builder, U64, 32));
135}
136
137// Given the initial state and the request number of random numbers to be
138// generated, returns the input for the random number generator and a new state.

Callers 4

ThreeFryRngBit64Function · 0.85
Uint32sToUint128Function · 0.85
PhiloxRngBit64Function · 0.85
ScramblePhiloxKeyFunction · 0.85

Calls 4

ShiftLeftFunction · 0.85
ConstantR0WithTypeFunction · 0.85
ConvertElementTypeFunction · 0.50
builderMethod · 0.45

Tested by

no test coverage detected