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

Method trunc

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

Source from the content-addressed store, hash-verified

1148 /// \param arg value to round
1149 /// \return rounded value
1150 MEGDNN_HOST MEGDNN_DEVICE static bfloat16 trunc(bfloat16 arg) {
1151 return bfloat16(binary_t(),
1152 round_bfloat16<std::round_toward_zero>(arg.data_));
1153 }
1154
1155 /// Nearest integer implementation.
1156 /// \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