Closed
[Bug-Report|缺陷反馈]: embedding_dense_grad_v2在索引轴较大时因搬运字节数小导致搬运次数多 #8766
SimonZzzAdd on  8 days agoClosed at  4 days ago
SimonZzz
SimonZzzCollaborators
8 days ago Create

Describe the current behavior / 问题描述 (Mandatory / 必填)

embedding_dense_grad_v2在索引轴较大时因搬运字节数小导致搬运次数多

Environment Information / 环境信息 (Mandatory / 必填)

Ascend950

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

运行num_weights较大用例出现性能较差

Describe the expected behavior / 预期结果 (Mandatory / 必填)

运行num_weights较大用例性能提升

NA

Special notes for this issue/备注 (Optional / 选填)

likedislike
SimonZzzSimonZzzCollaborators
8 days ago Added label: bug-report
SimonZzz
SimonZzzCollaborators
8 days ago Comments:

/assign

likedislike
CANN-robotCANN-robotCollaborators
8 days ago Assign SimonZzz as responsible person
yuning_chen
yuning_chenCollaborators
5 days ago Comments:

问题成立。epsilon/属性在接口层声明为 double,实现按 float 取值,极小正值下溢为 0,导致除零/全零输出。建议:①保留 double 到使用点或 max(eps, FLT_MIN);②资料写明有效范围;③补 UT。

本条要点: Describe the current behavior / 问题描述 (Mandatory / 必填)

likedislike
CANN-robotCANN-robotCollaborators
4 days ago Close issue
CANN-robotCANN-robotCollaborators
4 days ago changed custom state from 待办的 to 已完成
CANN-robotCANN-robotCollaborators
4 days ago Added label: resolved
chenjiayi_
chenjiayi_Collaborators
2 days ago Comments:

补充说明(输出质量)

背景:embedding_dense_grad_v2 在索引轴较大时,单次搬运字节数小、搬运次数多,导致性能差。

影响:大 num_weights 场景耗时高。

方案/范围:增大单次搬运粒度/合并索引,减少循环次数;补充 950 上大索引轴的性能数据;当前未检索到关联 PR。

验收标准:大索引轴场景性能提升;精度不变;小 shape 不回退。

当前状态:本 issue 当前为 closed;暂无关联 PR。

likedislike