MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / ERFC>

Method ERFC>

src/jit/impl/mlir/ir/each_mode.cpp:94–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92//! ERFC: complementary error function
93template <>
94mlir::Value lower_mode<Mode::ERFC>(
95 mlir::OpBuilder& builder, mlir::Location loc, ValueRange operands) {
96 ValueBuilderHelper helper(builder, loc);
97 return helper.sub(helper.const_f32(1.f), erf_approx(helper, operands[0]));
98}
99
100//! ERFINV: inverse of gauss error function
101//! https://github.com/scipy/scipy/blob/master/scipy/special/cephes/erfinv.c

Callers

nothing calls this directly

Calls 3

erf_approxFunction · 0.85
const_f32Method · 0.80
subMethod · 0.45

Tested by

no test coverage detected