Merged
将capi类型转换文档中asc_set_ctrl改成asc_set_saturation_flag #7428
徐梦煊Add on 10 days ago
将capi类型转换文档中asc_set_ctrl改成asc_set_saturation_flag #7428
Merged
徐梦煊Add on 10 days ago
徐梦煊
徐梦煊Collaborators
10 days ago

描述

更新 Reg 矢量精度转换文档中的饱和模式配置方式,将原有“使用饱和或非饱和模式前需配置 ctrl 寄存器”的说明,统一替换为通过 asc_set_saturation_flag 接口配置,并链接到该接口文档以说明具体配置要求。

同步更新相关文档的 YAML 依赖路径、依赖条件及摘要,确保正文与元数据保持一致。本次仅修改文档,不涉及 API 实现或行为变更。

关联的Issue

测试

文档更新

更新 docs/zh/api/SIMD-API/c_api/reg_compute/reg_convert 目录下23篇文档,包括:

  • 22篇精度转换 API 文档中的饱和模式配置约束。
  • rounding_mode.md 中的饱和模式配置方法。

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for 徐梦煊's contribution.)
徐梦煊徐梦煊Collaborators
10 days ago Created pull request, commit 3e26c233
atomgit-bot
atomgit-bot
10 days ago Comments:

变更摘要

本 PR 仅更新 docs/zh/api/SIMD-API/c_api/reg_compute/reg_convert 目录下的文档,不涉及 API 实现或行为变更。核心是把 Reg 矢量精度转换文档中“使用饱和/非饱和模式前需配置 ctrl 寄存器”的说明,统一改为“通过 asc_set_saturation_flag 接口配置”,并将相关链接与 YAML 依赖指向 asc_set_saturation_flag.md。

主要改动

  • 约束说明措辞统一:22 篇精度转换 API 文档的「约束说明」中将“需要配置ctrl寄存器”及对 asc_set_ctrl 的链接替换为“需要通过[asc_set_saturation_flag]接口配置,具体配置要求请参见该接口说明”,统一饱和模式的前置配置描述。
  • YAML 依赖项切换:多篇文档 front matter 的 dependencies 中,requires 路径由 docs/zh/api/SIMD-API/c_api/spr/asc_set_ctrl.md 改为 spr/asc_set_saturation_flag.md,对应 condition 同步改为“使用饱和或非饱和模式前需通过asc_set_saturation_flag接口配置”。
  • 元数据描述同步:asc_bfloat162half.md 的 description 及 rounding_mode.md 的概念摘要中,“配置 ctrl 寄存器 / 通过 ctrl 寄存器开启饱和模式”的表述改为通过 asc_set_saturation_flag 接口配置,保持正文与元数据一致。
  • 概念文档配置方法更新:rounding_mode.md 的「配置方法」小节改为指向 asc_set_saturation_flag 接口文档,作为饱和/非饱和模式配置的统一入口说明。
  • 个别文档仅更新正文:如 asc_float2e4m3.md、asc_half2int4x2.md 等未改动 front matter,仅将正文约束中 ctrl 寄存器配置说明与 asc_set_ctrl 链接替换为 asc_set_saturation_flag 说明。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
10 days ago Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
10 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
10 days 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.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
docs ✅ munanhw, Lycheeeee, bianque (3/2) ✅ munanhw (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

xumengxuan, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
10 days ago Set zengjuan,zhanghao_0689,suqwe,wulinyu,kong0808,dengjing_aoe,YeZZzzz1,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,XuebinYang,sjtulxh,bianque,houyuyang,Lycheeeee,YANXI_ZHAO,chentianyu19,shi_nanxiang,wuyang_hw,jiangxinyu3,munanhw,ai_xin,ascendhjh,hujiawen_kaven,wangxiaozhi,DragonBornHD84,louyuxuan,hyolee,chenma,yukangchen as approver
CANN-robotCANN-robotCollaborators
10 days ago Set bianque,munanhw,ai_xin,ascendhjh as approver
Lycheeeee
LycheeeeeCollaborators
10 days ago Comments:

/lgtm

likedislike
bianque
bianqueCollaborators
10 days ago Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
10 days ago Added label: lgtm
徐梦煊
徐梦煊Collaborators
10 days ago Comments:

compile

likedislike
徐梦煊徐梦煊Collaborators
10 days ago Pre merge succeeded (commit_id: ee9e3b02fc6a0e8f929c832e3dd513a0984c9ab6)
CANN-robot
CANN-robotCollaborators
10 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
10 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
10 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
10 days ago Added label: ci-pipeline-passed
munanhw
munanhwCollaborators
10 days ago Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
10 days ago Added label: approved
CANN-robotCANN-robotCollaborators
10 days ago Merged pull request