Fix control reaching the end of ProjectiveGenerator.

PiperOrigin-RevId: 157510013
This commit is contained in:
Dan Ringwalt 2017-05-30 14:11:31 -07:00 committed by TensorFlower Gardener
parent 040e2e20f1
commit 2249a4ea82

View File

@ -76,6 +76,9 @@ class ProjectiveGenerator {
return bilinear_interpolation(coords[0], input_y, input_x, coords[3],
fill_value);
}
// Unreachable; ImageProjectiveTransform only uses INTERPOLATION_NEAREST
// or INTERPOLATION_BILINEAR.
return T(0);
}
private: