MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / erfc

Method erfc

dnn/include/megdnn/dtype/half.hpp:1505–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1503 /// \param arg function argument
1504 /// \return function value stored in single-preicision
1505 MEGDNN_HOST MEGDNN_DEVICE static expr erfc(float arg)
1506 {
1507#if defined(__CUDA_ARCH__)
1508 return expr(erfcf(arg));
1509#elif HALF_ENABLE_CPP11_CMATH
1510 return expr(std::erfc(arg));
1511#else
1512 return expr(static_cast<float>(1.0-erf(static_cast<double>(arg))));
1513#endif
1514 }
1515
1516 /// Gamma logarithm implementation.
1517 /// \param arg function argument

Callers

nothing calls this directly

Calls 3

exprClass · 0.70
erfcFunction · 0.70
erfFunction · 0.70

Tested by

no test coverage detected