Skip to content

Conversation

@hariprasadravi
Copy link

The lowering for torch.aten.empty.memory_format produces a non-conformant tosa.const when the output !torch.vtensor has a zero-sized dimension. This fix detects this case and reports a failure, preventing the generation of invalid IR. This issue was first observed in the SAM2 image predictor model.

@hariprasadravi
Copy link
Author

hariprasadravi commented Oct 23, 2025

@sahas3 @Hanumanth04 Can you take a look and necessary reviewers?

@sahas3 sahas3 requested review from sahas3 and sjarus October 23, 2025 20:41
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.

1 participant