Skip to content

在scaled_dot_product_attention函数中,改为如果输入是3D,输出也是3D#73804

Merged
zhwesky2010 merged 6 commits into
PaddlePaddle:developfrom
Qin-sx:scaled_dot_attn_3D_input
Jul 7, 2025
Merged

在scaled_dot_product_attention函数中,改为如果输入是3D,输出也是3D#73804
zhwesky2010 merged 6 commits into
PaddlePaddle:developfrom
Qin-sx:scaled_dot_attn_3D_input

Conversation

@Qin-sx
Copy link
Copy Markdown
Contributor

@Qin-sx Qin-sx commented Jul 3, 2025

PR Category

User Experience

PR Types

Improvements

Description

当前问题

scaled_dot_product_attention函数,输入是3D时,输出不是3D

解决方案

将输出也改为3D

Qin-sx added 6 commits June 14, 2025 22:17
	modified:   python/paddle/nn/functional/flash_attention.py
	modified:   test/legacy_test/test_scaled_dot_product_attention.py
	modified:   test/legacy_test/test_scaled_dot_product_attention.py
	modified:   test/legacy_test/test_scaled_dot_product_attention.py
	modified:   python/paddle/nn/functional/flash_attention.py
	modified:   test/legacy_test/test_scaled_dot_product_attention.py
	modified:   python/paddle/nn/functional/flash_attention.py
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@8ae7423). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #73804   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?         2           
  Branches           ?         0           
===========================================
  Hits               ?         2           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paddle-bot paddle-bot Bot added the contributor External developers label Jul 3, 2025
Copy link
Copy Markdown
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit fcab4c5 into PaddlePaddle:develop Jul 7, 2025
101 of 107 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants