Optimize fused_stack_transpose_quant op #73639
Merged
+181 −287
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.
PR Category
Operator Mechanism
PR Types
Performance
Description
优化
fused_stack_transpose_quantop,包括以下4点:fused_stack_quant和fused_stack_transpose_quant合并为一个文件,其实原本就是一个文件,API也是同一个(用transpose参数区分),但是从NLP仓库迁移过来的时候给拆成2个了,为了后续维护方便还是合成一个比较好H卡性能:无transpose 91%带宽,有transpose 87%带宽;相同size不同输入个数的性能差距在1%以内,说明指针的传入机制是高效的
Pcard-85711