Correct forward_compatibility behavior.
PiperOrigin-RevId: 304199164 Change-Id: I25b21a7b3f1f82bdd23b56eed0cd451f05897907
This commit is contained in:
parent
cabb1ed2cf
commit
49690e5366
|
@ -4506,7 +4506,7 @@ def non_max_suppression_padded(boxes,
|
||||||
# version to give us time to fix TFLite conversion
|
# version to give us time to fix TFLite conversion
|
||||||
if (not sorted_input) and \
|
if (not sorted_input) and \
|
||||||
(not canonicalized_coordinates) and \
|
(not canonicalized_coordinates) and \
|
||||||
tile_size == 512 and compat.forward_compatible(2020, 4, 20):
|
tile_size == 512 and not compat.forward_compatible(2020, 4, 20):
|
||||||
return non_max_suppression_padded_v1(
|
return non_max_suppression_padded_v1(
|
||||||
boxes, scores, max_output_size, iou_threshold, score_threshold,
|
boxes, scores, max_output_size, iou_threshold, score_threshold,
|
||||||
pad_to_max_output_size, name)
|
pad_to_max_output_size, name)
|
||||||
|
|
Loading…
Reference in New Issue