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

Function IsInt32

tensorflow/compiler/xla/util.h:541–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539// Returns true if `x` fits in 32-bits.
540template <typename T>
541bool IsInt32(T x) {
542 // Following conversion rules: "the value is unchanged if it can be
543 // represented in the destination type (and bit-field width); otherwise, the
544 // value is implementation-defined."
545 return static_cast<int32>(x) == x;
546}
547
548template <typename T>
549Status EraseElementFromVector(std::vector<T>* container, const T& value) {

Callers 3

ExpandScatterMethod · 0.85
ExpandInstructionMethod · 0.85
GetIndexTypeForKernelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected