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

Method log

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

Source from the content-addressed store, hash-verified

1230 /// \param arg function argument
1231 /// \return function value stored in single-preicision
1232 MEGDNN_HOST MEGDNN_DEVICE static expr log(float arg) {
1233#if defined(__CUDA_ARCH__)
1234 return expr(logf(arg));
1235#else
1236 return expr(std::log(arg));
1237#endif
1238 }
1239
1240 /// Common logarithm implementation.
1241 /// \param arg function argument

Callers 13

set_qparamsMethod · 0.45
_get_coordMethod · 0.45
log_probMethod · 0.45
_log_normalizerMethod · 0.45
get_norm_mod_valueFunction · 0.45
backwardMethod · 0.45
refFunction · 0.45
safelogFunction · 0.45
test_logaddexpFunction · 0.45
ndtri_approxFunction · 0.45
LOG1P>Method · 0.45
LOG_SUM_EXP>Method · 0.45

Calls 2

exprClass · 0.70
logFunction · 0.70

Tested by 4

backwardMethod · 0.36
refFunction · 0.36
safelogFunction · 0.36
test_logaddexpFunction · 0.36