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

Method round

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

Source from the content-addressed store, hash-verified

1156 /// \param arg value to round
1157 /// \return rounded value
1158 MEGDNN_HOST MEGDNN_DEVICE static bfloat16 round(bfloat16 arg) {
1159 return bfloat16(binary_t(), round_bfloat16_up(arg.data_));
1160 }
1161
1162 /// Nearest integer implementation.
1163 /// \param arg value to round

Callers

nothing calls this directly

Calls 3

bfloat16Class · 0.85
round_bfloat16_upFunction · 0.85
binary_tClass · 0.70

Tested by

no test coverage detected