[Feature](bangc-ops): Fix bugs of ms_deform_attn_forward and align na… #852
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…n/inf status
Thanks for your contribution and we appreciate it a lot. 🚀🚀
1. Motivation
Fix a bug of ms_deform_attn_forward small channel kernel and align nan/inf status of all kernels.
2. Modification
modified: bangc-ops/kernels/ms_deform_attn_forward/msda_forward_small_channel_union1.mlu
3. Test Report
If you want to know how to do operator testing, you can see GTest-User-Guide-zh.
3.1 Modification Details
3.1.1 Accuracy Acceptance Standard
For static threshold standard details, see: MLU-OPS Accuracy Acceptance Standard.
3.1.2 Operator Scheme checklist
3.2 Accuracy Test
3.2.1 Accuracy Test
If you have checked the following items, please tick the relevant box.
3.2.2 Parameter Check
No update.
3.2.3 Accurary Test Result
Platform:MLU370
[ OK ] ms_deform_attn_forward/TestSuite.mluOp/23 (1 ms)
[----------] 24 tests from ms_deform_attn_forward/TestSuite (48 ms total)
[----------] Global test environment tear-down
[2023-10-11 15:23:32] [MLUOP] [Vlog]:TearDown CNRT environment.
[ SUMMARY ] Total 24 cases of 1 op(s).
ALL PASSED.
[==========] 24 test cases from 1 test suite ran. (713 ms total)
[ PASSED ] 24 test cases.
Platform:MLU590
[ OK ] ms_deform_attn_forward/TestSuite.mluOp/23 (2 ms)
[----------] 24 tests from ms_deform_attn_forward/TestSuite (346 ms total)
[----------] Global test environment tear-down
[ SUMMARY ] Total 24 cases of 1 op(s).
ALL PASSED.
[==========] 24 test cases from 1 test suite ran. (2087 ms total)
[ PASSED ] 24 test cases.
3.3 Performance Test
See MLU-OPS Performance Acceptance Standard for details.
No update.
3.4 Summary Analysis
All test passed.