MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / StdRound

Function StdRound

tensorflow/core/kernels/fake_quant_ops_functor.h:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include "tensorflow/core/platform/types.h"
26
27EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float StdRound(float input) {
28// On Android, std::round() isn't present, just round().
29#if defined(__ANDROID__)
30 return round(input);
31#else
32 return std::round(input);
33#endif
34}
35
36namespace tensorflow {
37

Callers 1

NudgeFunction · 0.85

Calls 1

roundClass · 0.70

Tested by

no test coverage detected