Closed
[Documentation|文档反馈]: confidencefusedhead文档更新 #8325
szhexinAdd on  15 days agoClosed at  13 days ago
szhexin
szhexinCollaborators
15 days ago Create

Document Link(文档链接)

matmul/confidence_head_fused/README.md
matmul/confidence_head_fused/README_en.md
matmul/confidence_head_fused/docs/aclnnConfidenceHeadFused.md
matmul/confidence_head_fused/docs/torchapi_confidence_head_fused.md
matmul/confidence_head_fused/op_graph/confidence_head_fused_proto.h

Issues Section(问题文档片段)

功能说明

将hidden与可选markov_emb沿最后一维逻辑拼接,与一维weight做矩阵向量乘,加上可选bias,经温度缩放、可选截断和Sigmoid后,输出FP32置信度。

features = cat([hidden, markov_emb], dim=-1)  # markov_emb 缺省时为 hidden
z = features @ weight + bias                # bias 缺省时为 0
T_eff = 1 if temperature is None or temperature[0] == 0 else temperature[0]
u = -z / T_eff
if clamp_low is enabled:  u = max(u, clamp_low)
if clamp_high is enabled: u = min(u, clamp_high)
out = 1 / (1 + exp(u))

Existing Issues(存在的问题)

likedislike
szhexinszhexinCollaborators
15 days ago Added label: documentation
szhexinszhexinCollaborators
15 days ago Assign szhexin as responsible person
CANN-robotCANN-robotCollaborators
13 days ago Close issue
CANN-robotCANN-robotCollaborators
13 days ago changed custom state from 进行中 to 已完成
CANN-robotCANN-robotCollaborators
13 days ago Added label: resolved
chenjiayi_
chenjiayi_Collaborators
2 days ago Comments:

补充说明(输出质量)

背景:confidence_head_fused 涉及 5 处资料:matmul/confidence_head_fused 的 README.md、README_en.md、docs/aclnnConfidenceHeadFused.md、docs/torchapi_confidence_head_fused.md、op_graph/confidence_head_fused_proto.h。功能包含 hidden 与 markov_emb 拼接、matvec+bias、温度缩放、clamp、sigmoid、FP32 输出。

影响:资料不一致会误导调用方,尤其是 markov_emb 缺省、temperature=0、clamp 顺序等边界。

方案/范围:逐处核对公式、参数约束、dtype/shape、边界行为;重点检查 temperature=0 时是否按 T_eff=1 处理、clamp 与 sigmoid 的先后顺序、FP32 输出是否始终成立;当前未检索到关联 PR。

验收标准:5 处资料描述一致;示例可运行;边界条件与实现一致;"存在的问题"栏目补齐。

当前状态:本 issue 当前为 closed;暂无关联 PR。

likedislike