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

Method exp

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

Source from the content-addressed store, hash-verified

1191 /// \param arg function argument
1192 /// \return function value stored in single-preicision
1193 MEGDNN_HOST MEGDNN_DEVICE static expr exp(float arg) {
1194#if defined(__CUDA_ARCH__)
1195 return expr(expf(arg));
1196#else
1197 return expr(std::exp(arg));
1198#endif
1199 }
1200
1201 /// Exponential implementation.
1202 /// \param arg function argument

Callers 15

_get_coordMethod · 0.45
cdfMethod · 0.45
fFunction · 0.45
forwardMethod · 0.45
test_elemementwiseFunction · 0.45
forwardMethod · 0.45
softmaxFunction · 0.45
log_sum_expFunction · 0.45
test_siluFunction · 0.45
test_logaddexpFunction · 0.45
sigmoidFunction · 0.45
np_softmaxFunction · 0.45

Calls 2

exprClass · 0.70
expFunction · 0.70

Tested by 10

fFunction · 0.36
forwardMethod · 0.36
test_elemementwiseFunction · 0.36
forwardMethod · 0.36
softmaxFunction · 0.36
log_sum_expFunction · 0.36
test_siluFunction · 0.36
test_logaddexpFunction · 0.36
sigmoidFunction · 0.36
np_softmaxFunction · 0.36