# AddEndToEnd **Repository Path**: owqowq/add-end-to-end ## Basic Information - **Project Name**: AddEndToEnd - **Description**: Ascend平台上端到端实现Add算子,作为一个实现例子 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-08-01 - **Last Updated**: 2025-08-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 自定义算子+Pybind调用 这个仓库是作为一个例子来写,记录从零构建一个算子(msopgen),之后,通过使用Pybind11在Python端调用自定义算子 ### 参考资料 [msopgen](https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/82RC1/devaids/optool/atlasopdev_16_0002.html) [samples](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials) [Pybind11 —— AscendC](https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/82RC1/opdevg/Ascendcopdevg/atlas_ascendc_10_0057.html) ### 注意点 使用msopgen开发的时候,需要注意tiling文件的编写,以及TilingFunc函数的编写 在Pybind11侧编写的内容,需要的注意custom_op.cpp文件的编写,里面的语法基本是面对特殊逻辑编写的,例如,result怎么设置等等 ### 心得体会 完整体验了一下从写算子到Python端可以拿来推理的完整过程,虽然是很简单的add算子,但是,算子开发的基本过程就是这样的,学到了!