You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/07/08 08:14:21 UTC
[GitHub] [tvm] masahi commented on a change in pull request #8401: Add qnn batch_matmul operator
masahi commented on a change in pull request #8401:
URL: https://github.com/apache/tvm/pull/8401#discussion_r665971452
##########
File path: python/tvm/relay/qnn/op/qnn.py
##########
@@ -682,6 +682,42 @@ def subtract(
)
+def batch_matmul(x, y, x_zero_point, y_zero_point, x_scale, y_scale, out_dtype="int32"):
+ r"""
+ Computes batch matrix multiplication of `x` and `y` when `x` and `y` are data
+ in batch.
+
+ .. math::
+
+ \mbox{batch_matmul}(x, y)[i, :, :] = \mbox{matmul}(x[i, :, :], y[i, :, :]^T)
+
+ Parameters
+ ----------
+ x : tvm.relay.Expr
Review comment:
`x, y`
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org