masahi commented on code in PR #11389:
URL: https://github.com/apache/tvm/pull/11389#discussion_r878504009


##########
python/tvm/topi/cuda/batch_matmul.py:
##########
@@ -367,7 +367,7 @@ def _schedule_batch_matmul_int8(cfg, s, output):
     # dp4a tensorize
 
     target = tvm.target.Target.current(allow_none=False)
-    do_tensorize = True
+    do_tensorize = target.supports_integer_dot_product

Review Comment:
   I think we can always initialize `do_tensorize` as
   ```
   do_tensorize = "+dotprod" in target.mattr or 
target.supports_integer_dot_product
   ```
   and remove `if is_target(["vulkan", "rocm"]):` below.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to