monklof commented on a change in pull request #7496:
URL: https://github.com/apache/tvm/pull/7496#discussion_r595689228
##########
File path: python/tvm/topi/cuda/dense.py
##########
@@ -42,11 +42,8 @@ def dense_cublas(cfg, data, weight, bias=None,
out_dtype=None):
batch, in_dim = data.shape
out_dim, _ = weight.shape
matmul = cublas.matmul(data, weight, False, True)
- if isinstance(batch, int):
+ if isinstance(batch, int) and isinstance(in_dim, int) and
isinstance(out_dim, int):
Review comment:
@comaniac I haven't found a way yet to do assertion inside te's
`compute` or `schedule`, and left this change to the future work, thanks!
----------------------------------------------------------------
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]