Qualify calls to some functions from <cmath>.
PiperOrigin-RevId: 239122030
This commit is contained in:
parent
949474a448
commit
f1e0fa966d
@ -120,7 +120,7 @@ TfLiteStatus ResizeOutputTensor(TfLiteContext* context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This is valid for both positive and negative strides
|
// 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;
|
dim_shape = dim_shape < 0 ? 0 : dim_shape;
|
||||||
if (!shrink_axis) {
|
if (!shrink_axis) {
|
||||||
output_shape_vector.push_back(dim_shape);
|
output_shape_vector.push_back(dim_shape);
|
||||||
|
Loading…
Reference in New Issue
Block a user