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

Function ErfInv

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

Source from the content-addressed store, hash-verified

454} // namespace
455
456XlaOp ErfInv(XlaOp x) {
457 auto& b = *x.builder();
458 return b.ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {
459 TF_RETURN_IF_ERROR(EnsureOperandIsRealFp("ErfInv", x));
460 TF_ASSIGN_OR_RETURN(auto shape, b.GetShape(x));
461 if (shape.element_type() == F64) {
462 return ErfInv64(x);
463 }
464 return DoWithUpcastToF32(x, {BF16, F16},
465 [](XlaOp x) { return ErfInv32(x); });
466 });
467}
468
469namespace {
470// Coefficients for the Lanczos approximation of the gamma function. The

Callers 3

TestErfEdgeCasesMethod · 0.85
XLA_TEST_FFunction · 0.85

Calls 7

EnsureOperandIsRealFpFunction · 0.85
ErfInv64Function · 0.85
DoWithUpcastToF32Function · 0.85
ErfInv32Function · 0.85
ReportErrorOrReturnMethod · 0.80
builderMethod · 0.45
element_typeMethod · 0.45

Tested by 2

TestErfEdgeCasesMethod · 0.68
XLA_TEST_FFunction · 0.68