Skip to content

fix: typo in assert (x.dim -> x.ndim) can cause errors#449

Open
aniketsrinivasan wants to merge 2 commits intofacebookresearch:mainfrom
aniketsrinivasan:bugfix/x-dim-typo
Open

fix: typo in assert (x.dim -> x.ndim) can cause errors#449
aniketsrinivasan wants to merge 2 commits intofacebookresearch:mainfrom
aniketsrinivasan:bugfix/x-dim-typo

Conversation

@aniketsrinivasan
Copy link

Fix a bug in TransformerEncoderFusion where an assertion uses x.dim on a Tensor instead of x.ndim or x.dim(). Change to x.ndim to fix the assertion.

fixes #355

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

x.dim should be x.dim()

1 participant