Closed
[Documentation|文档反馈]: Pow 接口公式、参数及非连续输出标注不一致 #3565
zhang-song-ruiAdd on  27 days agoClosed at  27 days ago
zhang-song-rui
zhang-song-ruiCollaborators
27 days ago Create

一、文档链接

二、问题文档片段

  1. TensorScalar 文档中,out 的“非连续Tensor”列为 -;实现通过 l0op::ViewCopy 写回非连续输出,应标为 √。同文档公式将标量指数写为 exponent_i,应为 exponent。
  2. ScalarTensor 文档公式写作 out_i = x_i^{exponent_i},但底数 self 为标量;功能描述中的 input 也不是接口参数名,应统一为 out_i = self^{exponent_i}。参数表的 out(aclTensor*) 与函数原型 const aclTensor* out 不一致。
  3. TensorTensor 公开头文件注释引用不存在的参数 other,实际参数名为 exponent。
  4. Pow IR 注释要求 x2、y 与 x1 同 dtype,但注册代码分别声明 T1/T2,输出采用 Promote({"T1", "T2"}),应修正注释中的同 dtype 限制。

三、预期修正

修正现有公式、参数类型、非连续输出标记和契约注释,使资料与当前函数原型及实现一致。本次仅处理上述纠错,不增加空 Tensor、动态 shape/rank 等能力说明,不修改 README 或 Exp2 文档。

修复 PR:https://gitcode.com/cann/ops-math/pull/6338

likedislike
zhang-song-ruizhang-song-ruiCollaborators
27 days ago Added label: documentation
CANN-robotCANN-robotCollaborators
27 days ago Close issue
CANN-robotCANN-robotCollaborators
27 days ago Added label: resolved
Xxujiachen8Collaborators
11 days ago Assign zhang-song-rui as responsible person