Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
SmoothL1LossGrad 的需求文档、CANNDEV 原型、op_graph、op_host 及构建生成的 binary.json 均将第三个输入定义为 dout,但 loss/smooth_l1_loss_grad/README.md 的计算公式、参数表、dtype 约束和 shape 约束中使用了 gradOutput,导致 README 与实际接口定义不一致,容易造成测试及用户理解偏差。
dout
loss/smooth_l1_loss_grad/README.md
gradOutput
5e7f4bf1b603cec432475b388935f6293bad3505
loss/smooth_l1_loss_grad
op_graph/smooth_l1_loss_grad_proto.h
.INPUT(dout, ...)
op_host/smooth_l1_loss_grad_def.cpp
Input("dout")
nn_norm_ops.h
smooth_l1_loss_grad_binary.json
"name": "dout"
README 中第三个输入的名称应统一为 dout,与需求文档、CANNDEV 原型、op_graph、op_host 和 binary.json 保持一致。
README 当前内容:
... × gradOutput
predict、label、gradOutput
predict、label、gradOutput、gradient
实际接口:
REG_OP(SmoothL1LossGrad).INPUT(dout, ...)
this->Input("dout")
{"name": "dout", "index": 2}
最新 .pre-commit-config.yaml 已在 codespell 的 -L 白名单中加入 dout,使用 dout 不再触发拼写检查失败。
.pre-commit-config.yaml
-L
/assign
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
SmoothL1LossGrad 的需求文档、CANNDEV 原型、op_graph、op_host 及构建生成的 binary.json 均将第三个输入定义为
dout,但loss/smooth_l1_loss_grad/README.md的计算公式、参数表、dtype 约束和 shape 约束中使用了gradOutput,导致 README 与实际接口定义不一致,容易造成测试及用户理解偏差。Environment / 环境信息 (Mandatory / 必填)
5e7f4bf1b603cec432475b388935f6293bad3505loss/smooth_l1_loss_gradSteps to reproduce the issue / 重现步骤 (Mandatory / 必填)
loss/smooth_l1_loss_grad/README.md,可见第 20、31、38、39 行使用gradOutput。op_graph/smooth_l1_loss_grad_proto.h:.INPUT(dout, ...)op_host/smooth_l1_loss_grad_def.cpp:Input("dout")nn_norm_ops.h:.INPUT(dout, ...)smooth_l1_loss_grad_binary.json:第三个输入"name": "dout"Describe the expected behavior / 预期结果 (Mandatory / 必填)
README 中第三个输入的名称应统一为
dout,与需求文档、CANNDEV 原型、op_graph、op_host 和 binary.json 保持一致。Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
README 当前内容:
... × gradOutputgradOutputpredict、label、gradOutputpredict、label、gradOutput、gradient实际接口:
REG_OP(SmoothL1LossGrad).INPUT(dout, ...)this->Input("dout"){"name": "dout", "index": 2}最新
.pre-commit-config.yaml已在 codespell 的-L白名单中加入dout,使用dout不再触发拼写检查失败。Special notes for this issue/备注 (Optional / 选填)