Skip to content

Conversation

@jikechao
Copy link
Member

@jikechao jikechao commented May 20, 2025

The patch gracefully handles zero-extent loops (like those from empty indices in take() ops) by returning Evaluate(0) in PerStoreFeature, preventing CHECK(p < n_loops) crashes.
This restores auto-tuning for empty-input edge cases while perfectly preserving existing feature extraction for normal loops.

Fix #17994

cc @Hzfengsy @tqchen @vinx13 @MasterJH5574

@Hzfengsy Hzfengsy merged commit 08f3365 into apache:main May 21, 2025
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] MetaSchedule PerStoreFeature crashes when processing zero-extent loops

2 participants