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

Function IsNan

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

Source from the content-addressed store, hash-verified

127}
128
129XlaOp IsNan(XlaOp operand) {
130 auto& b = *operand.builder();
131 return b.ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {
132 TF_RETURN_IF_ERROR(EnsureOperandIsRealFp("IsNan", operand));
133 return Ne(operand, operand);
134 });
135}
136
137XlaOp IsNegZero(XlaOp operand) {
138 auto& b = *operand.builder();

Callers 6

IgammaFunction · 0.70
IgammaGradAFunction · 0.70
RandomGammaGradFunction · 0.70
TestIsInfOrNanMethod · 0.70
unary_ops.ccFile · 0.50
CholeskyUnblockedFunction · 0.50

Calls 4

EnsureOperandIsRealFpFunction · 0.85
ReportErrorOrReturnMethod · 0.80
NeFunction · 0.50
builderMethod · 0.45

Tested by 1

TestIsInfOrNanMethod · 0.56