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

Function log

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

Natural logorithm. \param arg function argument \return logarithm of \a arg to base e template typename enable ::type log(T arg) { return functions::log(arg); }

Source from the content-addressed store, hash-verified

1885// template<typename T> typename enable<expr,T>::type log(T arg) {
1886// return functions::log(arg); }
1887MEGDNN_HOST MEGDNN_DEVICE inline expr log(bfloat16 arg) {
1888 return functions::log(arg);
1889}
1890MEGDNN_HOST MEGDNN_DEVICE inline expr log(expr arg) {
1891 return functions::log(arg);
1892}

Callers 1

logMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected