Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print all outputs in SdpaFwdOp #3328

Merged
merged 1 commit into from
Nov 2, 2024
Merged

Print all outputs in SdpaFwdOp #3328

merged 1 commit into from
Nov 2, 2024

Conversation

Priya2698
Copy link
Collaborator

@Priya2698 Priya2698 commented Nov 1, 2024

Closes Issue #3037.

For the test:

TEST_F(SDPATest, AttnFwdBwd) {

SdpaFwdOp::toString()

T3_l___half[ iS12{16}, iS13{32}, iS14{64}, iS15{64} ],
T4_l_float[ iS16{16}, iS17{32}, iS18{64} ],
T5_l_int64_t[ ],
T6_l_int64_t[ ]
   = sdpa(T0_g___half[ iS0{16}, iS1{32}, iS2{64}, iS3{64} ],
            T1_g___half[ iS4{16}, iS5{32}, iS6{128}, iS7{64} ],
            T2_g___half[ iS8{16}, iS9{32}, iS10{128}, iS11{64} ],
            dropout_p = double(0),
            is_causal = false  )

SdpaBwdOp::toString()

T8_g___half[ iS23{16}, iS24{32}, iS25{64}, iS26{64} ],
T9_g___half[ iS27{16}, iS28{32}, iS29{128}, iS30{64} ],
T10_g___half[ iS31{16}, iS32{32}, iS33{128}, iS34{64} ]
   = sdpa_bwd(T7_g___half[ iS19{16}, iS20{32}, iS21{64}, iS22{64} ],
            T0_g___half[ iS0{16}, iS1{32}, iS2{64}, iS3{64} ],
            T1_g___half[ iS4{16}, iS5{32}, iS6{128}, iS7{64} ],
            T2_g___half[ iS8{16}, iS9{32}, iS10{128}, iS11{64} ],
            T3_g___half[ iS12{16}, iS13{32}, iS14{64}, iS15{64} ],
            logsum_exp = T4_l_float[ iS16{16}, iS17{32}, iS18{64} ],
            dropout_p = double(0),
            is_causal = false,
            philox_seed = T5_l_int64_t[ ],
            philox_offset = T6_l_int64_t[ ],
  )

@Priya2698 Priya2698 requested a review from wujingyue November 1, 2024 23:31
@Priya2698
Copy link
Collaborator Author

!build

@Priya2698 Priya2698 linked an issue Nov 1, 2024 that may be closed by this pull request
Copy link
Collaborator

@wujingyue wujingyue left a comment

Choose a reason for hiding this comment

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

Thank you!

@wujingyue
Copy link
Collaborator

!test

@wujingyue wujingyue merged commit e6b285b into main Nov 2, 2024
38 of 39 checks passed
@wujingyue wujingyue deleted the pm/sdpa_print branch November 2, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SdpaFwdOp::toString doesn't print all outputs.
2 participants