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

Method log

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

Source from the content-addressed store, hash-verified

837 /// \param arg function argument
838 /// \return function value stored in single-preicision
839 MEGDNN_HOST MEGDNN_DEVICE static expr log(float arg) {
840#if defined(__CUDA_ARCH__)
841 return expr(logf(arg));
842#else
843 return expr(std::log(arg));
844#endif
845 }
846
847 /// Common logarithm implementation.
848 /// \param arg function argument

Callers

nothing calls this directly

Calls 2

exprClass · 0.70
logFunction · 0.70

Tested by

no test coverage detected