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

Method rint

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

Source from the content-addressed store, hash-verified

1163 /// \param arg value to round
1164 /// \return rounded value
1165 MEGDNN_HOST MEGDNN_DEVICE static bfloat16 rint(bfloat16 arg) {
1166 return bfloat16(binary_t(),
1167 round_bfloat16<bfloat16::round_style>(arg.data_));
1168 }
1169
1170 /// Nearest integer implementation.
1171 /// \param arg value to round

Callers

nothing calls this directly

Calls 2

bfloat16Class · 0.85
binary_tClass · 0.70

Tested by

no test coverage detected