[Bug] InternalError "Check failed: indices.size() == 1 (2 vs. 1): CodeGenLLVM requires all buffers to be flat 1-d buffers" #17478
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
When building a Relax module with a TIR function that uses axis separators in the buffer layout, TVM throws an InternalError during the compilation process. The error message suggests that TVM's LLVM code generation requires all buffers to be flat 1-dimensional, but the provided buffer has more than one index.
The issue appears to be related to how the
axis_separators
attribute is handled in match_buffer, which results in a mismatch during LLVM code generation.Steps to reproduce
Actual behavior
Could you please help confirm if this is a bug in TVM or an issue with my usage?
The text was updated successfully, but these errors were encountered: