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

Method fmod

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

Source from the content-addressed store, hash-verified

1064 /// \param y second operand
1065 /// \return Half-precision division remainder stored in single-precision
1066 MEGDNN_HOST MEGDNN_DEVICE static expr fmod(float x, float y) {
1067#if defined(__CUDA_ARCH__)
1068 return expr(fmodf(x, y));
1069#else
1070 return expr(std::fmod(x, y));
1071#endif
1072 }
1073
1074 /// Remainder implementation.
1075 /// \param x first operand

Callers

nothing calls this directly

Calls 2

exprClass · 0.70
fmodFunction · 0.70

Tested by

no test coverage detected