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

Method fmod

dnn/include/megdnn/dtype/bfloat16.hpp:750–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748 /// \param y second operand
749 /// \return bfloat16 division remainder stored in single-precision
750 MEGDNN_HOST MEGDNN_DEVICE static expr fmod(float x, float y) {
751#if defined(__CUDA_ARCH__)
752 return expr(fmodf(x, y));
753#else
754 return expr(std::fmod(x, y));
755#endif
756 }
757
758 /// Remainder implementation.
759 /// \param x first operand

Callers

nothing calls this directly

Calls 2

exprClass · 0.70
fmodFunction · 0.70

Tested by

no test coverage detected