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

Function BitCast

tensorflow/compiler/xla/bit_cast.h:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37template <typename T, typename U>
38T BitCast(U src) {
39 static_assert(sizeof(T) == sizeof(U), "sizes don't match");
40 // We would like to check std::is_trivially_copyable here, but there's no
41 // reliable implementation of that available to us.
42 return absl::bit_cast<T>(src);
43}
44
45template <>
46inline tensorflow::bfloat16 BitCast<tensorflow::bfloat16, uint16_t>(

Callers 15

EmitIntegerUnaryOpMethod · 0.85
EmitFloatUnaryOpMethod · 0.85
HandleBitcastMethod · 0.85
HandleConvolutionMethod · 0.85
HandleFftMethod · 0.85
EmitFastConcatenateMethod · 0.85
EmitTransferElementsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected