Closed
[Bug-Report|缺陷反馈]: heaviside算子tiling缺少入参/dtype校验与溢出防护,静态检查发现问题 #8397
tan_xinAdd on 12 days agoClosed at 12 days ago
12 days ago Added label: bug-report
12 days ago Assign tan_xin as responsible person
12 days ago Close issue
12 days ago changed custom state from 待办的 to 已完成
12 days ago Added label: resolved


Describe the current behavior / 问题描述 (Mandatory / 必填)
heaviside 算子存在多处静态检查发现的问题:
(a+b-1)/b在 a 接近 INT64_MAX 时可能产生有符号溢出。Environment Information / 环境信息 (Mandatory / 必填)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Describe the expected behavior / 预期结果 (Mandatory / 必填)
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
静态检查工具(如 pre-commit)报告:missing newline at end of file、trailing whitespace、unused import 等提示;tiling/示例在高风险输入下缺少错误返回。
Special notes for this issue/备注 (Optional / 选填)
关联 PR:https://gitcode.com/cann/ops-nn/pull/13876