Commit 71786925 authored by Yong Tang's avatar Yong Tang Committed by Jonathan Hseu
Browse files

Improve shape function of NonMaxSuppression (#16890)



* Improve shape function of NonMaxSuppression

In the docs for `tf.image.non_max_suppression`, the shapes
of the args `boxes` and `scores` are `[num_boxes, 4]` and `[num_boxes]`
respectively.

This fix improve the shape function of NonMaxSuppression so that
`boxes_shape[0] = scores_shape[0] = num_boxes`.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Add additional test case for shape function of NonMaxSuppression

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 00986f1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment