Open
【11月贡献大赛-缺陷修复】fix(ops-precision-standard): [Bug] fix empty batch crash, fp16/uint8 diff overflow, shape broadcast, and NaN/Inf handling in mare_mere_threshold.py #7335
liuhongweiAdd on 3 hours ago
【11月贡献大赛-缺陷修复】fix(ops-precision-standard): [Bug] fix empty batch crash, fp16/uint8 diff overflow, shape broadcast, and NaN/Inf handling in mare_mere_threshold.py #7335
Open
Merge blocked
3 hours ago Added label: ascend-cla/yes
ascend-robot
3 hours ago Comments:
3 hours ago Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
PR Approval Progress
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| sig-model-agent | ❌ (0/2)(You can also ask: 林泽毅, 花新宇, 焦泽昱, 张玉橙, starmountain) | ❌ (0/1)(You can also ask: 胡晓曼, 林泽毅, 刘磊, 顾梦沁, 焦泽昱) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
liuhongwei-2026, thanks for your pull request. All authors of the commits have signed the CLA. 👍


关联 Issue
改动说明
skills/optimization/ops-precision-standard/scripts/mare_mere_threshold.py中新增_prepare_pair()校验张量形状一致与非空并转为np.float64后计算差值,防止float16差值溢出及uint8无符号下溢回绕,并杜绝静默广播掩盖形状错误。check_precision_threshold()中显式检测NaN/Inf,发现非有限值时强制判定is_pass=False并记录原因;返回字段统一转为原生 Pythonbool/float。check_precision_threshold_batch([])空批次调用np.mean/np.max报错的问题。skills/optimization/ops-precision-standard/tests/test_mare_mere_threshold.py。改动类型
自检清单
测试结果
python -m pytest -q skills/optimization/ops-precision-standard/tests/test_mare_mere_threshold.py # 4 passed in 0.19s