[Bug] InternalError: Check failed: (!block_stack_.empty()) is false in StaticPlanBlockMemory with Dataflow #17488
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
The code defines a relax function that allocates a tensor using R.builtin.alloc_tensor inside a dataflow block. When applying the StaticPlanBlockMemory transformation, it results in an internal error with the message:
Check failed: (!block_stack_.empty()) is false
. However, if the dataflow block is removed, the transformation completes without error.Expected behavior
The
StaticPlanBlockMemory
transformation should handle functions with dataflow blocks correctly, allowing the memory planning without causing internal errors.Actual behavior
Steps to reproduce
This issue may indicate a problem with how dataflow blocks are processed within the StaticPlanBlockMemory pass. Any guidance or fixes to resolve this would be appreciated.
The text was updated successfully, but these errors were encountered: