Skip to content

Drop redundant uint32_t narrowing at cap_grid_dim_x in repeat_arange/get_source_mask - #6063

Open
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D112381247
Open

Drop redundant uint32_t narrowing at cap_grid_dim_x in repeat_arange/get_source_mask#6063
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D112381247

Conversation

@q10

@q10 q10 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary: cap_grid_dim_x takes int64_t; the static_cast<uint32_t>(batch_size) pre-narrowing is redundant. Drops it in repeat_arange and get_source_mask.

Reviewed By: cthi

Differential Revision: D112381247

…get_source_mask

Summary: cap_grid_dim_x takes int64_t; the static_cast<uint32_t>(batch_size) pre-narrowing is redundant. Drops it in repeat_arange and get_source_mask.

Reviewed By: cthi

Differential Revision: D112381247
@meta-cla meta-cla Bot added the cla signed label Jul 24, 2026
@meta-codesync

meta-codesync Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@q10 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D112381247.

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.

1 participant