Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
SeluGrad要求gradOutput(dy)、result(y)和gradInput使用相同dtype。当前Ascend950 Tiling仅依据gradOutput的dtype选择计算路径,未校验result.dtype是否与gradOutput.dtype一致。
当两个输入分别使用框架支持的不同dtype(例如gradOutput为FLOAT、result为FLOAT16)时,旧实现未在Tiling阶段拒绝该非法组合,存在Kernel按错误dtype解释输入数据的风险。
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem. SeluGrad应校验gradOutput、result和gradInput的dtype一致性。
当gradOutput与result的dtype不一致时:
修复后定向测试结果:
SeluGradTilingTest.AcceptsMatchingSupportedDtypes:PASSED SeluGradTilingTest.RejectsMismatchedSupportedInputDtypes:PASSED Tiling UT:2/2 PASSED
selu_backward_test.test_selubackward_inconsistent_dtype:PASSED ACLNN op_api UT:13/13 PASSED
pre-commit:全部检查通过。
/assign
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
SeluGrad要求gradOutput(dy)、result(y)和gradInput使用相同dtype。当前Ascend950 Tiling仅依据gradOutput的dtype选择计算路径,未校验result.dtype是否与gradOutput.dtype一致。
当两个输入分别使用框架支持的不同dtype(例如gradOutput为FLOAT、result为FLOAT16)时,旧实现未在Tiling阶段拒绝该非法组合,存在Kernel按错误dtype解释输入数据的风险。
Environment / 环境信息 (Mandatory / 必填)
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the expected behavior / 预期结果 (Mandatory / 必填)
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
SeluGrad应校验gradOutput、result和gradInput的dtype一致性。
当gradOutput与result的dtype不一致时:
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
修复后定向测试结果:
SeluGradTilingTest.AcceptsMatchingSupportedDtypes:PASSED
SeluGradTilingTest.RejectsMismatchedSupportedInputDtypes:PASSED
Tiling UT:2/2 PASSED
selu_backward_test.test_selubackward_inconsistent_dtype:PASSED
ACLNN op_api UT:13/13 PASSED
pre-commit:全部检查通过。
Special notes for this issue/备注 (Optional / 选填)
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.