| 35 | // then multiplying by the divisor. For example: RoundUpToNearest(13, 8) => 16 |
| 36 | template <typename T> |
| 37 | static T RoundUpToNearest(T value, T divisor) { |
| 38 | return tensorflow::MathUtil::CeilOfRatio(value, divisor) * divisor; |
| 39 | } |
| 40 | |
| 41 | // The size of the redzone at the end of the user buffer is rounded up to a |
| 42 | // multiple of kRhsRedzoneAlign. This simplifies the implementation a bit. |
no test coverage detected