Closed
[Bug-Report|缺陷反馈]: 贡献仓主页README目录结构与算子贡献README中创建的目录结构不一致,对于算子贡献应该以哪个为准 #33
liuxiqiangAdd on  Oct 14, 2025Closed at  Oct 30, 2025
liuxiqiang
Oct 14, 2025 Create

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

image.png

Environment / 环境信息 (Mandatory / 必填)

Atlas 800I A2 推理产品

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

两个README链接如下:
https://gitcode.com/cann/ops-math/blob/master/README.md
https://gitcode.com/cann/ops-math/blob/master/docs/context/aicore_develop_guide.md

Describe the expected behavior / 预期结果 (Mandatory / 必填)

目录结构描述一致,保证算子贡献目录结构单一

image.png

Special notes for this issue/备注 (Optional / 选填)

likedislike
chenqi317Collaborators
Oct 14, 2025 Comments:

op_api 支持自动生成和自行显示实现

https://gitcode.com/cann/ops-math/blob/master/README.md 中是目录接口
is_finite 使用了自行显示实现方式,需要显示提供cpp和h 文件

开发者新发开算子时,可以参考该文档 https://gitcode.com/cann/ops-math/blob/master/docs/context/aicore_develop_guide.md
使用op_api 自动生成能力,帮助开发者快速完成新算子的开发
image.png

likedislike
liuxiqiang
Oct 14, 2025 Comments:

op_api 支持自动生成和自行显示实现

https://gitcode.com/cann/ops-math/blob/master/README.md 中是目录接口
is_finite 使用了自行显示实现方式,需要显示提供cpp和h 文件

开发者新发开算子时,可以参考该文档 https://gitcode.com/cann/ops-math/blob/master/docs/context/aicore_develop_guide.md
使用op_api 自动生成能力,帮助开发者快速完成新算子的开发
image.png

你好,我这边存在的疑问是,算子开发部op_host生成的算子目录是算子host实现文件,为什么到了贡献仓主页reamed中op_host 下面是aclnn接口实现文件了image.png

likedislike
songkai111Collaborators
Oct 14, 2025 Comments:

你好,左图中,主要是介绍各级目录包含内容,并没有展开介绍其中的各个文件,所以未像右图那样,展示了每个文件内容。
开发算子时,具体cpp交付件应以右图为准。

likedislike
SsundayCollaborators
Oct 15, 2025 Assign zhou-qilong as responsible person
sundayCollaborators
Oct 15, 2025 Comments:

你好,右边的图中是使用了“op_api 自动生成能力”针对这种自动生成的op_api是不需要这个目录的。我们会补充一下左边图对应的说明。

likedislike
SsundayCollaborators
Oct 15, 2025 Assign sky_leilin as responsible person
sky_leilin
sky_leilinCollaborators
Oct 24, 2025 Comments:

这个问题已经在 PR73 中修复了,对应的资料链接为:https://gitcode.com/cann/ops-math/blob/master/docs/context/dir_structure.md 。
如果你确认问题已解决,请关闭这个 issue。如果还有其他问题,欢迎继续讨论

likedislike
SsundayCollaborators
Oct 30, 2025 changed custom state from 进行中 to 已完成
SsundayCollaborators
Oct 30, 2025 Close issue
TtangkaidiCollaborators
Sep 10 Associated pull request
TtangkaidiCollaborators
Sep 10 Deleted associated pull request: 【master】【docs&examples】修改部分conversion算子的docs和examples目录下的调用示例的问题
HHana77Collaborators
Sep 30 Associated pull request
HHana77Collaborators
Sep 30 Deleted associated pull request: 新增ConcatToConcatDFusionPass融合规则资料