Skip to content

[Fix] avoid SymInt stride reads in activations under torch.compile - #1008

Merged
zhiyuan1i merged 1 commit into
mainfrom
fix-compile-activation-stride
Jul 7, 2026
Merged

zhiyuan1i merged 1 commit into
mainfrom
fix-compile-activation-stride

Conversation

@zhiyuan1i

Copy link
Copy Markdown
Collaborator

Summary

Work around a PyTorch 2.12 dynamo ConstantVariable(SymInt) assertion when torch.compile-ing activations on tensors with size-1 dims.

Test

tests/modules/test_activation.py (dispatch disabled + enabled) on H100 / torch 2.12.1.

@zhiyuan1i
zhiyuan1i merged commit bce39a4 into main Jul 7, 2026
14 checks passed
@zhiyuan1i
zhiyuan1i deleted the fix-compile-activation-stride branch July 7, 2026 13:16
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