Qualify calls to some functions from <cmath>.

PiperOrigin-RevId: 239122030
This commit is contained in:
A. Unique TensorFlower 2019-03-18 21:23:44 -07:00 committed by TensorFlower Gardener
parent 949474a448
commit f1e0fa966d

View File

@ -120,7 +120,7 @@ TfLiteStatus ResizeOutputTensor(TfLiteContext* context,
}
// This is valid for both positive and negative strides
int32_t dim_shape = ceil((end - begin) / static_cast<float>(stride));
int32_t dim_shape = std::ceil((end - begin) / static_cast<float>(stride));
dim_shape = dim_shape < 0 ? 0 : dim_shape;
if (!shrink_axis) {
output_shape_vector.push_back(dim_shape);