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

Method acos

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

Source from the content-addressed store, hash-verified

1380 /// \param arg function argument
1381 /// \return function value stored in single-preicision
1382 MEGDNN_HOST MEGDNN_DEVICE static expr acos(float arg) {
1383#if defined(__CUDA_ARCH__)
1384 return expr(acosf(arg));
1385#else
1386 return expr(std::acos(arg));
1387#endif
1388 }
1389
1390 /// Arc tangent implementation.
1391 /// \param arg function argument

Callers

nothing calls this directly

Calls 2

exprClass · 0.70
acosFunction · 0.70

Tested by

no test coverage detected