| Files | Last commit | Last update |
|---|---|---|
test: add AmpUpdateScale L0 ST coverage Co-authored-by: zhouyuanhang30083383<zhouyuanhang4@h-partners.com> # message auto-generated for no-merge-commit merge: !7407 merge codex/amp-update-scale-st-l0 into master test: add AmpUpdateScale L0 ST coverage Created-by: m0_55003149 Commit-by: zhouyuanhang30083383 Merged-by: cann-robot Description: ## 描述 新增 aclnnAmpUpdateScale 双标杆 L0 ST 用例与 CPU 标杆,共 200 条,不修改算子实现、公开接口或既有功能面。 - 覆盖 FLOAT16、BFLOAT16、FLOAT32 三种 currentScale/foundInf/updatedScale 类型。 - 覆盖 foundInf 为 0、正负非零、NaN、+Inf、-Inf,以及 growth、backoff、普通递增、growthInterval=1 和 INT32_MAX 边界。 - 覆盖增长结果溢出保护、零 scale、零回退因子和异常 growthTracker 状态。 - CPU 标杆复用 PyTorch 官方 torch._amp_update_scale_;FP16/BF16 在调用前转为 FP32、调用后回转输出 dtype,并适配 updatedScale 与 updatedGrowthTracker 两路输出。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/4735 ## 测试 环境:Ascend 910B3 / CANN 9.3.0 / ATK 26.9.24 结果:200/200 PASS,执行失败 0,精度失败 0,通过率 100%。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 测试增强 - [ ] 其他,请描述: See merge request: cann/ops-math!7407 | 7 days ago |