Laurawly commented on a change in pull request #6839:
URL: https://github.com/apache/tvm/pull/6839#discussion_r540655119
##########
File path: python/tvm/topi/cuda/nms.py
##########
@@ -554,12 +757,7 @@ def non_max_suppression(
score_axis = score_index
score_shape = (batch_size, num_anchors)
score_tensor = te.compute(score_shape, lambda i, j: data[i, j,
score_axis], tag=tag.ELEMWISE)
- target = tvm.target.Target.current()
- if (
- target
- and target.kind.name == "cuda"
- and tvm.get_global_func("tvm.contrib.thrust.sort_nms",
allow_missing=True)
- ):
+ if tvm.get_global_func("tvm.contrib.thrust.sort_nms", allow_missing=True):
Review comment:
Opencl doesn't have thrust lib, need to assert target is cuda 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:
[email protected]