[Bug] shape int32-int64 check error in trilu
's te.compute
#13029
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
Expected behavior
TVM should successfully compile a model whose operators are supported.
Actual behavior
The compilation could fail when the model contains the recently supported
trilu
operator.In the
Steps to reproduce
section, the minimal reproducible is derived from an ONNX model exported by PyTorch which usesint64
as shape arguments, mixing withint32
constants in TVM's frontend translator, causing the compilation to fail due to int32-int64 mismatch incheck_op
:tvm/python/tvm/topi/transform.py
Line 1057 in bdcfa01
A quick fix could just be aligning integer types of
row_index
andcol_index - k
before doingcheck_op
.Environment
fa17da22c73fb9e95c27e4c28130835b628caf6b
on Ubuntu 20.04.Steps to reproduce
Minimized reproducible.
Log. Click to expand!
Triage
Please refer to the list of label tags linked above to find the relevant tags and add them here in a bullet format (example below).
cc: @jwfromm
The text was updated successfully, but these errors were encountered: