Skip to content

Fix overflow in attention workspace calculation#4939

Closed
jwfromm wants to merge 1 commit into
pytorch:mainfrom
jwfromm:export-D83370379
Closed

Fix overflow in attention workspace calculation#4939
jwfromm wants to merge 1 commit into
pytorch:mainfrom
jwfromm:export-D83370379

Conversation

@jwfromm

@jwfromm jwfromm commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Summary: During workspace calculation some of the additions risked overflowing int32 and returning an invalid value. This diff makes sure that we're doing higher precision arithmetic in the workspace to prevent this issue.

Reviewed By: q10

Differential Revision: D83370379

Summary: During workspace calculation some of the additions risked overflowing int32 and returning an invalid value. This diff makes sure that we're doing higher precision arithmetic in the workspace to prevent this issue.

Reviewed By: q10

Differential Revision: D83370379
@netlify

netlify Bot commented Sep 26, 2025

Copy link
Copy Markdown

Deploy Preview for pytorch-fbgemm-docs failed.

Name Link
🔨 Latest commit 1be7ecf
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/68d6ed0b00e5d6000839d26b

@meta-cla meta-cla Bot added the cla signed label Sep 26, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@jwfromm has exported this pull request. If you are a Meta employee, you can view the originating diff in D83370379.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in dbc93d4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants