Skip to content

remove redundant code block - #2393

Merged
copybara-service[bot] merged 1 commit into
mainfrom
fix_op_redundant
Sep 26, 2025
Merged

remove redundant code block#2393
copybara-service[bot] merged 1 commit into
mainfrom
fix_op_redundant

Conversation

@babyplutokurt

@babyplutokurt babyplutokurt commented Sep 24, 2025

Copy link
Copy Markdown
Collaborator

Description

Remove redundant "Apply local masking if local sliding attention is enabled." check

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed.

@RissyRan RissyRan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@richjames0 could you also help check if this is a typo or something? based on this PR.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hi @RissyRan, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review Summary

This pull request removes a redundant code block for handling local sliding attention within the tpu_flash_attention function. The change simplifies the code and improves readability without altering the underlying logic.

🔍 General Feedback

  • The refactoring is clean and effectively removes unnecessary code.
  • The logic for chunked attention is preserved and correctly integrated into the surrounding control flow.

@RissyRan RissyRan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 approvers already from code owner, but no pull ready label added yet

@copybara-service
copybara-service Bot merged commit 7e4b1d3 into main Sep 26, 2025
28 checks passed
@copybara-service
copybara-service Bot deleted the fix_op_redundant branch September 26, 2025 19:45
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.

3 participants