kevinthesun commented on a change in pull request #4312:
URL: https://github.com/apache/incubator-tvm/pull/4312#discussion_r417499071



##########
File path: python/tvm/relay/frontend/tensorflow.py
##########
@@ -612,6 +615,51 @@ def _impl(inputs, attr, params, mod):
             out = _op.transpose(out, axes=(0, 2, 3, 4, 1))
 
         return out
+
+def _nms():
+    def _impl(inputs, attr, params, mod):
+        # Get parameter values
+        max_output_size = 
int(np.atleast_1d(inputs[2].data.asnumpy().astype("int64"))[0])
+        iou_threshold = np.atleast_1d(inputs[3].data.asnumpy())[0]
+        # score_threshold was introduced from V3
+        score_threshold = np.atleast_1d(inputs[4].data.asnumpy())[0] if 
len(inputs) > 4 else None

Review comment:
       Need to use 0.0 instead of None here?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to