Skip to content

Conversation

@jikechao
Copy link
Member

@jikechao jikechao commented May 14, 2025

Fix #17847.

As described in #17847, the current topi.nn.simplify function incorrectly reuses input buffer names when simplifying te.Tensor, causing IR generation conflicts in storage_rewrite.

This PR modifies simplify to explicitly handle te.Tensor inputs by generating a new output tensor (avoiding buffer aliasing), while preserving the original behavior for PrimExpr and scalar inputs.

cc @tqchen @Hzfengsy @vinx13

@github-actions github-actions bot requested review from Hzfengsy, tqchen and vinx13 May 14, 2025 15:21
@Hzfengsy Hzfengsy merged commit eca92bd into apache:main Jun 2, 2025
11 of 12 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][TIR] Array declaration of expr occurred multiple times

2 participants