Skip to content

Conversation

@jikechao
Copy link
Member

@jikechao jikechao commented May 14, 2025

issue desription

This pr aimed to fix #17973. MetaSchedule's FLOP estimator fails when encountering EvaluateNode (e.g., from T.call_packed), throwing TVMError: Do not have a default for tir.Evaluate. This occurs because FlopEstimator lacked a handler for EvaluateNode, causing tuning to abort.

Fix strategy

EvaluateNode typically wraps side-effect operations (e.g., T.call_packed for memory copies or external calls) that contribute negligible FLOPs. Returning 0 avoids overcounting while allowing tuning to proceed rather than crash.

cc @Hzfengsy @tqchen @vinx13

@github-actions github-actions bot requested review from Hzfengsy, tqchen and vinx13 May 14, 2025 12:58
@jikechao
Copy link
Member Author

cc @merrymercy @jcf94 @comaniac

@tqchen tqchen merged commit bcae402 into apache:main May 28, 2025
11 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] TVMError: Do not have a default for tir.Evaluate

2 participants