已关闭
[Bug-Report|缺陷反馈]: SigmoidCrossEntropyWithLogitsV2 重复配置项 #1494
AlfengYuan创建于 3月14日关闭于 3月19日
AlfengYuan
3月14日 评论:
3月14日 评论:
/assign


3月14日 将 alfengyuan 设为负责人
3月14日 关联了pull request:fix SigmoidCrossEntropyWithLogitsV2 config
3月19日 关闭了 issue
3月19日 issue状态由 进行中 改变为 已完成
3月19日 添加了label:Accepted
3月20日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
configs里面 attr有 mean,sum,none三种类型。
attr实际运行时会由tilign传给kernel,不配置attr并不影响kernel的选择和运行。
每个attr都配一个kernel会导致,算子.o成倍膨胀。
Environment / 环境信息 (Mandatory / 必填)
ascend950
cann9.0.0
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
cd /usr/local/Ascend/cann/opp/built-in/op_impl/ai_core/tbe/kernel/ascend950/ops_nn/sigmoid_cross_entropy_with_logits_v2
ll -lah
会看到算子kernel有15个,其实不同的数据类型组合只需要5个,每个相同功能的.o重复了3倍。
Describe the expected behavior / 预期结果 (Mandatory / 必填)
float16,float16, float16, float16, float16,
float16,float16, float16, float16, float32,
float32,float32, float32, float32, float32,
bfloat16,bfloat16, bfloat16, bfloat16, bfloat16,
bfloat16,bfloat16, bfloat16, bfloat16, float32
只需要这五种数据类型组合,json里 attr配null就行
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无
Special notes for this issue/备注 (Optional / 选填)
无