已合并
fix smoothl1loss blending accuracy #2640
simbaliuxx创建于 2025年6月17日
fix smoothl1loss blending accuracy #2640
已合并
simbaliuxx创建于 2025年6月17日
refs/pull/2640/head合入到master
simbaliuxx
simbaliuxx
2025年6月17日

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind feature

What does this PR do / why do we need it:

Special notes for your reviewers:

likedislike
Pull Request已成功合入, 合并人@
(感谢 simbaliuxx 的贡献)
AAtomGit-Bot
2025年6月17日 添加了 &nbsp; ascend-cla/yes 标签
simbaliuxx
simbaliuxx
2025年6月18日 评论:

compile

likedislike
atlasaccount1atlasaccount1
2025年6月18日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年6月18日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年6月18日 添加了 &nbsp; ci-pipeline-failed 标签
chuboning成员2025年6月20日进行代码检视1
op_plugin/utils/KernelNpuOutputSize.cpp
@@ -15,6 +15,7 @@
1515 
1616#include <bitset>
1717#include "torch_npu/csrc/core/npu/NPUException.h"
18+#include "torch_npu/csrc/core/npu/NpuVariables.h"
1819#include "op_plugin/utils/AdvancedIndex.h"
1920#include "op_plugin/utils/OpUtils.h"
2021#include "op_plugin/utils/KernelNpuOutputSize.h"
@@ -580,8 +581,9 @@ ctc_loss_npu_output_size(const at::Tensor &log_probs, int64_t max_length)
580581 }
581582 c10::SmallVector<int64_t, SIZE> neg_log_likelihood_size = {batch_size};
582583 int64_t alpha_tail_size = 2 * max_length + 1;
584+ static bool isRegBaseSoc = c10_npu::GetSocVersion() >= c10_npu::SocVersion::Ascend910_95;
chuboning2025年6月20日评论:

定义加个static

likedislike
Llihang90
2025年6月26日 强制推送 了代码
atlasaccount1atlasaccount1
2025年6月26日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年6月26日 移除了 &nbsp; ci-pipeline-failed 标签
lihang902025年6月26日进行代码检视1
op_plugin/utils/KernelNpuOutputSize.cpp
@@ -15,6 +15,7 @@
1515 
1616#include <bitset>
1717#include "torch_npu/csrc/core/npu/NPUException.h"
18+#include "torch_npu/csrc/core/npu/NpuVariables.h"
1819#include "op_plugin/utils/AdvancedIndex.h"
1920#include "op_plugin/utils/OpUtils.h"
2021#include "op_plugin/utils/KernelNpuOutputSize.h"
@@ -580,8 +581,9 @@ ctc_loss_npu_output_size(const at::Tensor &log_probs, int64_t max_length)
580581 }
581582 c10::SmallVector<int64_t, SIZE> neg_log_likelihood_size = {batch_size};
582583 int64_t alpha_tail_size = 2 * max_length + 1;
584+ static bool isRegBaseSoc = c10_npu::GetSocVersion() >= c10_npu::SocVersion::Ascend910_95;
lihang902025年6月26日评论:

定义加个static

已修改

likedislike
lihang90
2025年6月26日 评论:

compile

likedislike
atlasaccount1
atlasaccount1
2025年6月26日 评论:

流水线已停止!请重新触发

likedislike
atlasaccount1atlasaccount1
2025年6月26日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年6月26日 添加了 &nbsp; ci-pipeline-failed 标签
simbaliuxx
simbaliuxx
2025年6月30日 评论:

compile

likedislike
atlasaccount1
atlasaccount1
2025年6月30日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[9fa942eac0a6471ea89cc18e9a4fe347]

likedislike
atlasaccount1atlasaccount1
2025年6月30日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年6月30日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1
atlasaccount1
2025年6月30日 评论:

checklist流水线任务已触发,正在执行,请稍候。任务链接[e34862895c974e76a88f30d15ba455c3]

likedislike
atlasaccount1atlasaccount1
2025年6月30日 添加了 &nbsp; ci-pipeline-passed 标签
atlasaccount1atlasaccount1
2025年6月30日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年6月30日 评论:
检查项 状态 详情
code_check >>>
sca >>>
anti_poison >>>
judge_branch_x86 >>>
judge_branch_arm >>>
Build_master_x86_USE_CXX_ABI_GCC13 >>>
UT_master_x86 >>>
Build_v1110_x86 >>>
UT_v1110_x86 >>>
Build_v210_x86 >>>
UT_v210_x86 >>>
Build_v220_x86 >>>
UT_V220_x86 >>>
Build_v251_x86 >>>
UT_V251_x86 >>>
Build_v260_x86 >>>
UT_V260_x86 >>>
Build_master_ARM_USE_CXX_ABI_GCC13 >>>
Build_v1110_ARM >>>
Build_v210_ARM >>>
UT_v210_ARM_A2 >>>
Build_v220_ARM >>>
Build_v251_ARM >>>
Build_v260_ARM_USE_CXX_ABI >>>
Build_v271_x86 >>>
UT_V271_x86 >>>
Build_v271_ARM >>>
likedislike
simbaliuxxsimbaliuxx
2025年7月1日 更新了说明
simbaliuxxsimbaliuxx
2025年7月2日 更新了说明
simbaliuxxsimbaliuxx
2025年7月2日 更新了标题
张广军
2025年7月2日 评论:

/approve

likedislike
AAtomGit-Bot
2025年7月2日 添加了 &nbsp; approved 标签
AAtomGit-Bot
2025年7月2日 添加了 &nbsp; lgtm 标签
AAtomGit-Bot
2025年7月2日 合并了Pull Request(通过 API 合并)