| 25 | #include "tensorflow/core/platform/types.h" |
| 26 | |
| 27 | EIGEN_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 | |
| 36 | namespace tensorflow { |
| 37 |