MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / round_half_up

Function round_half_up

samples/common/half.h:1349–1352  ·  view source on GitHub ↗

Round half-precision number to nearest integer value using round-to-nearest-away-from-zero. \param value binary representation of half-precision value \return half-precision bits for nearest integral value

Source from the content-addressed store, hash-verified

1347/// \param value binary representation of half-precision value
1348/// \return half-precision bits for nearest integral value
1349inline uint16 round_half_up(uint16 value)
1350{
1351 return round_half_impl<std::round_to_nearest, 0>(value);
1352}
1353/// \}
1354
1355struct functions;

Callers 1

roundMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected