Home
last modified time | relevance | path

Searched refs:rounded_toward_zero (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/stream_executor/lib/
Dmathutil.h68 const IntegralType rounded_toward_zero = numerator / denominator; in CeilOrFloorOfRatio() local
69 const IntegralType intermediate_product = rounded_toward_zero * denominator; in CeilOrFloorOfRatio()
81 const bool needs_adjustment = (rounded_toward_zero >= 0) && in CeilOrFloorOfRatio()
85 const IntegralType ceil_of_ratio = rounded_toward_zero + adjustment; in CeilOrFloorOfRatio()
89 const bool needs_adjustment = (rounded_toward_zero <= 0) && in CeilOrFloorOfRatio()
93 const IntegralType floor_of_ratio = rounded_toward_zero - adjustment; in CeilOrFloorOfRatio()
/external/tensorflow/tensorflow/core/lib/math/
Dmath_util.h102 const IntegralType rounded_toward_zero = numerator / denominator; in CeilOrFloorOfRatio() local
103 const IntegralType intermediate_product = rounded_toward_zero * denominator; in CeilOrFloorOfRatio()
117 (rounded_toward_zero >= 0) && in CeilOrFloorOfRatio()
121 const IntegralType ceil_of_ratio = rounded_toward_zero + adjustment; in CeilOrFloorOfRatio()
126 (rounded_toward_zero <= 0) && in CeilOrFloorOfRatio()
130 const IntegralType floor_of_ratio = rounded_toward_zero - adjustment; in CeilOrFloorOfRatio()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorConvolution.h844 const unsigned int rounded_toward_zero = num / denom;
845 if (num > rounded_toward_zero * denom) {
846 return rounded_toward_zero + 1;
848 return rounded_toward_zero;