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

Function IsInf

tensorflow/compiler/xla/client/lib/math.cc:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121XlaOp IsInf(XlaOp operand) {
122 auto& b = *operand.builder();
123 return b.ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {
124 TF_RETURN_IF_ERROR(EnsureOperandIsRealFp("IsInf", operand));
125 return IsPosInf(Abs(operand));
126 });
127}
128
129XlaOp IsNan(XlaOp operand) {
130 auto& b = *operand.builder();

Callers 3

LgammaFunction · 0.70
TestIsInfOrNanMethod · 0.70
unary_ops.ccFile · 0.50

Calls 5

EnsureOperandIsRealFpFunction · 0.85
IsPosInfFunction · 0.85
ReportErrorOrReturnMethod · 0.80
AbsFunction · 0.50
builderMethod · 0.45

Tested by 1

TestIsInfOrNanMethod · 0.56