Update tensorflow/core/kernels/image/crop_and_resize_op.cc

This commit is contained in:
Mihai Maruseac 2020-08-27 18:45:08 +00:00 committed by GitHub
parent 14589c930a
commit abfdbf5647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,6 @@ struct CropAndResize<CPUDevice, T> {
continue;
}
if (method_name == "bilinear") {
const int top_y_index = floorf(in_y);
const int bottom_y_index = ceilf(in_y);
const float y_lerp = in_y - top_y_index;