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

Function lround

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

Nearest integer. \param arg half to round \return nearest integer, rounded away from zero in half-way cases template typename enable ::type lround(T arg) { return functions::lround(arg); }

Source from the content-addressed store, hash-verified

2497 /// \return nearest integer, rounded away from zero in half-way cases
2498// template<typename T> typename enable<long,T>::type lround(T arg) { return functions::lround(arg); }
2499 MEGDNN_HOST MEGDNN_DEVICE inline long lround(half arg) { return functions::lround(arg); }
2500 MEGDNN_HOST MEGDNN_DEVICE inline long lround(expr arg) { return functions::lround(arg); }
2501
2502 /// Nearest integer using half's internal rounding mode.

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68