From 1725ab6962defc4322a548f822644e488cd7a982 Mon Sep 17 00:00:00 2001 From: Sachin Joglekar Date: Mon, 6 Jul 2020 14:30:18 -0700 Subject: [PATCH] Shift forward-compat window for NMS padded to fix TFLite conversion in 2.3 PiperOrigin-RevId: 319856402 Change-Id: I60eeb4e411609511046cc4676c2f3ad630b3769d --- tensorflow/python/ops/image_ops_impl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tensorflow/python/ops/image_ops_impl.py b/tensorflow/python/ops/image_ops_impl.py index 683681b5c98..eb18c06e0d2 100644 --- a/tensorflow/python/ops/image_ops_impl.py +++ b/tensorflow/python/ops/image_ops_impl.py @@ -4579,11 +4579,11 @@ def non_max_suppression_padded(boxes, Raises: ValueError: When set pad_to_max_output_size to False for batched input. """ - # if no new arguments are used and no later than 2020/4/20, use the old - # version to give us time to fix TFLite conversion + # if no new arguments are used and no later than 2020/6/23, use the old + # version to give us time to fix TFLite conversion after the TF 2.3 release. if (not sorted_input) and \ (not canonicalized_coordinates) and \ - tile_size == 512 and not compat.forward_compatible(2020, 4, 20): + tile_size == 512 and not compat.forward_compatible(2020, 6, 23): return non_max_suppression_padded_v1( boxes, scores, max_output_size, iou_threshold, score_threshold, pad_to_max_output_size, name)