From 7f8070d5af8c29364fca02541681f8c23dba6e4c Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 10:38:32 +0800 Subject: [PATCH 1/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index cb6675ca6..4db71da15 100644 --- a/README.md +++ b/README.md @@ -23,24 +23,6 @@ - 请参考[CANN社区版文档](https://hiascend.com/document/redirect/CannCommunityInstWizard?utm_source=gitee&utm_medium=sample&utm_campaign=samples)相关章节,对昇腾硬件、CANN软件及相应深度学习框架进行安装准备。 - 本源码仓会适配CANN软件版本创建相应的标签并发行,关于CANN软件版本与本源码仓中标签的配套关系可参见["本源码仓标签与CANN版本配套表"](docs/MATCH.md#cannversionmap)。**需要注意,为确保您的源码定制开发顺利进行,请选择配套的CANN版本与Gitee标签源码,使用master分支可能存在版本不匹配的风险。** -## 推荐样例 - -| **样例名称** | **样例介绍** | **开发语言** | -|---|---|---| -| [DVPP接口样例](https://gitee.com/ascend/samples/tree/master/cplusplus/level2_simple_inference/0_data_process) | 图像视频处理(DVPP)单接口样例,包含图片视频解码(vdec/jpegd)、缩放(resize)、抠图(crop)、转换(vpc)等功能 | C++ | -| [单算子样例](https://gitee.com/ascend/samples/tree/master/cplusplus/level1_single_api/4_op_dev/2_verify_op) | 自定义算子开发介绍,单算子调用样例,包含Add/batchnorm/conv2d/lstm/matmul/reshape等算子 | C++ | -| [Ascend C单算子样例](https://gitee.com/ascend/samples/tree/master/operator) | 自定义Ascend C算子开发介绍,单算子调用样例,包含Add/LayerNorm/MatMul/MatMulLeakyRelu/MoeSoftMaxTopK等算子 | Ascend C | -| [sampleResnetQuickStart](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetQuickStart) | :+1:推理应用入门样例,基于Resnet50模型实现的图像分类应用 | C++/Python | -| [sampleResnetAIPP](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetAIPP) | AIPP特性使用,基于Resnet50模型实现的图像分类应用 | C++/Python | -| [sampleResnetDVPP](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetDVPP) | DVPP特性使用,基于Resnet50模型实现的图像分类应用 | C++/Python | -| [sampleYOLOV7](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7) | 使能DVPP+AIPP特性,基于YoloV7模型实现的物体检测应用 | C++ | -| [sampleResnetRtsp](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetRtsp) | RTSP视频流输入,基于Resnet50模型实现的图像分类应用 | C++ | -| [sampleCarColor](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleCarColor) | 多模型串接,基于YoloV7模型和颜色分类模型实现的检测分类应用 | C++ | -| [sampleYOLOV7MultiInput](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7MultiInput) | :+1:多路输入综合样例,基于YoloV7模型实现的物体检测应用,支持多路RTSP流/视频输入、支持多卡并行 | C++ | -| [sampleCrowdCounting](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleCrowdCounting) | 统计图片人头数量,基于CrowdCounting模型实现的推理应用 | Python | -| [sampleYOLOV7NMSONNX](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7NMSONNX) | 后处理使用CANN算子进行加速,基于YoloV7模型实现的物体检测应用 | Python | - - ## 仓库结构 ``` @@ -79,6 +61,29 @@ |--/level3_multi_model:多模型串接综合样例 ``` +## 推理开发样例 +| **样例名称** | **样例介绍** | **开发语言** | +|---|---|---| +| [DVPP接口样例](https://gitee.com/ascend/samples/tree/master/cplusplus/level2_simple_inference/0_data_process) | 图像视频处理(DVPP)单接口样例,包含图片视频解码(vdec/jpegd)、缩放(resize)、抠图(crop)、转换(vpc)等功能 | C++ | +| [sampleResnetQuickStart](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetQuickStart) | :+1:推理应用入门样例,基于Resnet50模型实现的图像分类应用 | C++/Python | +| [sampleResnetAIPP](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetAIPP) | AIPP特性使用,基于Resnet50模型实现的图像分类应用 | C++/Python | +| [sampleResnetDVPP](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetDVPP) | DVPP特性使用,基于Resnet50模型实现的图像分类应用 | C++/Python | +| [sampleYOLOV7](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7) | 使能DVPP+AIPP特性,基于YoloV7模型实现的物体检测应用 | C++ | +| [sampleResnetRtsp](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetRtsp) | RTSP视频流输入,基于Resnet50模型实现的图像分类应用 | C++ | +| [sampleCarColor](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleCarColor) | 多模型串接,基于YoloV7模型和颜色分类模型实现的检测分类应用 | C++ | +| [sampleYOLOV7MultiInput](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7MultiInput) | :+1:多路输入综合样例,基于YoloV7模型实现的物体检测应用,支持多路RTSP流/视频输入、支持多卡并行 | C++ | +| [sampleCrowdCounting](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleCrowdCounting) | 统计图片人头数量,基于CrowdCounting模型实现的推理应用 | Python | +| [sampleYOLOV7NMSONNX](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7NMSONNX) | 后处理使用CANN算子进行加速,基于YoloV7模型实现的物体检测应用 | Python | + +## 算子开发样例 +| **样例名称** | **样例介绍** | **开发语言** | +|---|---|---| +| [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | Atlas 训练系列产品/Atlas 推理系列产品AI Corr/Atlas A2训练系列产品/Atlas 800I A2推理产品
Atlas 200/500 A2推理产品 | +| [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | Atlas 推理系列产品AI Core/Atlas A2训练系列产品/Atlas 800I A2推理产品/Atlas 200/500 A2推理产品 | +| [MatmulCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulCustomSample) | 基于AscendC的Matmul自定义Cube算子及调用样例 | Atlas 推理系列产品AI Core
Atlas A2训练系列产品/Atlas 800I A2推理产品 | +| [MatmulLeakyReluCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulLeakyReluCustomSample) | 基于AscendC的MatmulLeakyRelu自定义Cube+Vector算子及调用样例 | Atlas 推理系列产品AI Core/Atlas A2训练系列产品/Atlas 800I A2推理产品 | +| [UnalignAddCustomSample](https://gitee.com/ascend/samples/tree/master/operator_contrib/UnalignAddCustomSample) | 基于AscendC的Add算子(非对齐)算子及调用样例 | Atlas 200/500 A2 推理产品/Atlas A2训练系列产品 | + ## 变更日志 -- Gitee From 7335846d7b8cb7ef83f153a7309866af1b832190 Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 10:43:12 +0800 Subject: [PATCH 2/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4db71da15..aec5fad90 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ | [sampleYOLOV7NMSONNX](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7NMSONNX) | 后处理使用CANN算子进行加速,基于YoloV7模型实现的物体检测应用 | Python | ## 算子开发样例 -| **样例名称** | **样例介绍** | **开发语言** | +| **目录名称** | **功能描述** | **运行环境** | |---|---|---| | [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | Atlas 训练系列产品/Atlas 推理系列产品AI Corr/Atlas A2训练系列产品/Atlas 800I A2推理产品
Atlas 200/500 A2推理产品 | | [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | Atlas 推理系列产品AI Core/Atlas A2训练系列产品/Atlas 800I A2推理产品/Atlas 200/500 A2推理产品 | -- Gitee From ea50cd7318e36d1ff50308f68c8f93557416f44f Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 11:35:39 +0800 Subject: [PATCH 3/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aec5fad90..67592e06e 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,14 @@ ## 仓库结构 ``` +- /best_practices:基于Atlas 200 DK推理项目实践样例 +- /common:samples仓公共文件目录 - /cplusplus:C++样例归档路径(待迁移至/inference) |--/contrib:外部贡献推理样例 |--/level1_single_api:CANN AscendCL接口、DVPP接口、Graph接口等单接口样例 |--/level2_simple_inference:AscendCL推理应用样例 - /docs:CANN Samples样例使用相关说明、FAQ文档 +- /growthpath:开发者CANN的学习路径,帮助开发者快速掌握每一阶段知识点及开发技巧 - /inference:推理应用相关样例 |--/ACLHelloWorld:AscendCL推理应用入门“Hello World” |--/acllite:AscendCL高阶封装接口,包含C++及Python版本 @@ -38,27 +41,39 @@ |--/mediaProcess:媒体(音视频)接口相关样例 |--/memoryManagement:AscendCL内存管理样例 |--/modelInference:推理应用样例目录,包含C++及Python版本 -- /operator:算子开发与使用相关样例 - |--/AddCustomSample:Ascend C算子开发Add样例 - |--FrameworkLaunch: 单算子工程及调用样例 +- /operator:Ascend C算子调用样例 + |tutorials: + |--/AddCustomSample:Ascend C算子开发Add样例 + |--FrameworkLaunch: 单算子工程及调用样例 |--AclNNInvocation: 单算子API执行样例 |--AclOfflineModel: 单算子模型执行样例 |--AclOnlineModel: 单算子模型执行样例 |--AddCustom: 单算子工程 |--CppExtensions: pybind调用样例 |--PytorchInvocation: pytorch调用样例 - |--TensorFlowInvocation: tensorflow调用样例 - |--KernelLaunch: 内核调试调用样例 + |--KernelLaunch: 内核调试调用样例 |--AddKernelInvocation: 内核调试调用样例 |--AddKernelInvocationNeo: Kernel Launch调试样例 |--AddKernelInvocationTilingNeo: 带Tiling的Kernel Launch调试样例 |--/... |--/... +- /operator_contrib:算子开发与使用相关样例 + |--/AddCustomSample:Ascend C算子开发Add算子样例 + |--/AddcdivCustomSample:Ascend C算子开发Addcdiv算子样例 + |--/AddcmulSample:Ascend C算子开发Addcmul算子样例 + |--/AsStridedSample:Ascend C算子开发AsStrided算子样例 + |--/UnalignAddCustomSample:Ascend C算子开发Add算子(非对齐)样例 + |--/... + |--/... - /python:Python样例归档路径(待迁移至/inference) |--/contrib:外部贡献推理样例 |--/level1_single_api:CANN AscendCL接口、DVPP接口、Graph接口等单接口样例 |--/level2_simple_inference:AscendCL推理应用样例 |--/level3_multi_model:多模型串接综合样例 +- /robot/ascend_car:昇腾开发板智能车实际应用样例 +- /st:样例测试用例,主要用于样例的功能性验证 +- /training:训练应用样例 + ``` ## 推理开发样例 -- Gitee From 2e40b31ea62a81f54f4c7b84a03f423e985e91ae Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 11:38:03 +0800 Subject: [PATCH 4/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67592e06e..fbb069ef3 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ |--/contrib:外部贡献推理样例 |--/level1_single_api:CANN AscendCL接口、DVPP接口、Graph接口等单接口样例 |--/level2_simple_inference:AscendCL推理应用样例 + |--/... - /docs:CANN Samples样例使用相关说明、FAQ文档 - /growthpath:开发者CANN的学习路径,帮助开发者快速掌握每一阶段知识点及开发技巧 - /inference:推理应用相关样例 @@ -41,6 +42,7 @@ |--/mediaProcess:媒体(音视频)接口相关样例 |--/memoryManagement:AscendCL内存管理样例 |--/modelInference:推理应用样例目录,包含C++及Python版本 + |--/... - /operator:Ascend C算子调用样例 |tutorials: |--/AddCustomSample:Ascend C算子开发Add样例 @@ -56,7 +58,6 @@ |--AddKernelInvocationNeo: Kernel Launch调试样例 |--AddKernelInvocationTilingNeo: 带Tiling的Kernel Launch调试样例 |--/... - |--/... - /operator_contrib:算子开发与使用相关样例 |--/AddCustomSample:Ascend C算子开发Add算子样例 |--/AddcdivCustomSample:Ascend C算子开发Addcdiv算子样例 @@ -64,7 +65,6 @@ |--/AsStridedSample:Ascend C算子开发AsStrided算子样例 |--/UnalignAddCustomSample:Ascend C算子开发Add算子(非对齐)样例 |--/... - |--/... - /python:Python样例归档路径(待迁移至/inference) |--/contrib:外部贡献推理样例 |--/level1_single_api:CANN AscendCL接口、DVPP接口、Graph接口等单接口样例 -- Gitee From 0fe947a96b670192f32f88d6b394188a89ac9ab9 Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 14:10:31 +0800 Subject: [PATCH 5/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index fbb069ef3..a8c11796d 100644 --- a/README.md +++ b/README.md @@ -44,25 +44,15 @@ |--/modelInference:推理应用样例目录,包含C++及Python版本 |--/... - /operator:Ascend C算子调用样例 - |tutorials: - |--/AddCustomSample:Ascend C算子开发Add样例 - |--FrameworkLaunch: 单算子工程及调用样例 - |--AclNNInvocation: 单算子API执行样例 - |--AclOfflineModel: 单算子模型执行样例 - |--AclOnlineModel: 单算子模型执行样例 - |--AddCustom: 单算子工程 - |--CppExtensions: pybind调用样例 - |--PytorchInvocation: pytorch调用样例 - |--KernelLaunch: 内核调试调用样例 - |--AddKernelInvocation: 内核调试调用样例 - |--AddKernelInvocationNeo: Kernel Launch调试样例 - |--AddKernelInvocationTilingNeo: 带Tiling的Kernel Launch调试样例 - |--/... -- /operator_contrib:算子开发与使用相关样例 - |--/AddCustomSample:Ascend C算子开发Add算子样例 - |--/AddcdivCustomSample:Ascend C算子开发Addcdiv算子样例 - |--/AddcmulSample:Ascend C算子开发Addcmul算子样例 - |--/AsStridedSample:Ascend C算子开发AsStrided算子样例 + |ascendc + |0_introduction:简单的示例,适合初学者 + |1_utilities:编译工程和自定义工程、assert及debug功能、硬件平台信息的查询能力等 + |2_features:Ascend C的特性 + |3_libraries:类库的使用示例,包括数学库,激活函数等 + |4_best_practices:最佳实践示例 + |tutorials:生态教学的示例 + |--/AddCustomSample:Ascend C算子开发Add样例 +- /operator_contrib:算子贡献样例 |--/UnalignAddCustomSample:Ascend C算子开发Add算子(非对齐)样例 |--/... - /python:Python样例归档路径(待迁移至/inference) @@ -80,7 +70,7 @@ | **样例名称** | **样例介绍** | **开发语言** | |---|---|---| | [DVPP接口样例](https://gitee.com/ascend/samples/tree/master/cplusplus/level2_simple_inference/0_data_process) | 图像视频处理(DVPP)单接口样例,包含图片视频解码(vdec/jpegd)、缩放(resize)、抠图(crop)、转换(vpc)等功能 | C++ | -| [sampleResnetQuickStart](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetQuickStart) | :+1:推理应用入门样例,基于Resnet50模型实现的图像分类应用 | C++/Python | +| [sampleResnetQuickStart](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetQuickStart) | 推理应用入门样例,基于Resnet50模型实现的图像分类应用 | C++/Python | | [sampleResnetAIPP](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetAIPP) | AIPP特性使用,基于Resnet50模型实现的图像分类应用 | C++/Python | | [sampleResnetDVPP](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetDVPP) | DVPP特性使用,基于Resnet50模型实现的图像分类应用 | C++/Python | | [sampleYOLOV7](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7) | 使能DVPP+AIPP特性,基于YoloV7模型实现的物体检测应用 | C++ | -- Gitee From 1d5d454693ff0831da255496d39bd68a2bbef220 Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 14:41:24 +0800 Subject: [PATCH 6/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a8c11796d..c53f94c9c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ ## 仓库结构 ``` -- /best_practices:基于Atlas 200 DK推理项目实践样例 +- /best_practices:CANN最佳实践样例 - /common:samples仓公共文件目录 - /cplusplus:C++样例归档路径(待迁移至/inference) |--/contrib:外部贡献推理样例 @@ -43,7 +43,7 @@ |--/memoryManagement:AscendCL内存管理样例 |--/modelInference:推理应用样例目录,包含C++及Python版本 |--/... -- /operator:Ascend C算子调用样例 +- /operator:Ascend C算子开发与使用相关样例 |ascendc |0_introduction:简单的示例,适合初学者 |1_utilities:编译工程和自定义工程、assert及debug功能、硬件平台信息的查询能力等 @@ -52,7 +52,7 @@ |4_best_practices:最佳实践示例 |tutorials:生态教学的示例 |--/AddCustomSample:Ascend C算子开发Add样例 -- /operator_contrib:算子贡献样例 +- /operator_contrib:Ascend C算子开发者贡献样例 |--/UnalignAddCustomSample:Ascend C算子开发Add算子(非对齐)样例 |--/... - /python:Python样例归档路径(待迁移至/inference) @@ -60,7 +60,7 @@ |--/level1_single_api:CANN AscendCL接口、DVPP接口、Graph接口等单接口样例 |--/level2_simple_inference:AscendCL推理应用样例 |--/level3_multi_model:多模型串接综合样例 -- /robot/ascend_car:昇腾开发板智能车实际应用样例 +- /robot:昇腾开发板智能车实际应用样例 - /st:样例测试用例,主要用于样例的功能性验证 - /training:训练应用样例 @@ -81,13 +81,13 @@ | [sampleYOLOV7NMSONNX](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7NMSONNX) | 后处理使用CANN算子进行加速,基于YoloV7模型实现的物体检测应用 | Python | ## 算子开发样例 -| **目录名称** | **功能描述** | **运行环境** | +| **目录名称** | **样例介绍** | **开发语言** | |---|---|---| -| [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | Atlas 训练系列产品/Atlas 推理系列产品AI Corr/Atlas A2训练系列产品/Atlas 800I A2推理产品
Atlas 200/500 A2推理产品 | -| [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | Atlas 推理系列产品AI Core/Atlas A2训练系列产品/Atlas 800I A2推理产品/Atlas 200/500 A2推理产品 | -| [MatmulCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulCustomSample) | 基于AscendC的Matmul自定义Cube算子及调用样例 | Atlas 推理系列产品AI Core
Atlas A2训练系列产品/Atlas 800I A2推理产品 | -| [MatmulLeakyReluCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulLeakyReluCustomSample) | 基于AscendC的MatmulLeakyRelu自定义Cube+Vector算子及调用样例 | Atlas 推理系列产品AI Core/Atlas A2训练系列产品/Atlas 800I A2推理产品 | -| [UnalignAddCustomSample](https://gitee.com/ascend/samples/tree/master/operator_contrib/UnalignAddCustomSample) | 基于AscendC的Add算子(非对齐)算子及调用样例 | Atlas 200/500 A2 推理产品/Atlas A2训练系列产品 | +| [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | Ascend C | +| [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | Ascend C | +| [MatmulCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulCustomSample) | 基于AscendC的Matmul自定义Cube算子及调用样例 | Ascend C | +| [MatmulLeakyReluCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulLeakyReluCustomSample) | 基于AscendC的MatmulLeakyRelu自定义Cube+Vector算子及调用样例 | Ascend C | +| [UnalignAddCustomSample](https://gitee.com/ascend/samples/tree/master/operator_contrib/UnalignAddCustomSample) | 基于AscendC的Add算子(非对齐)算子及调用样例 | Ascend C | ## 变更日志 -- Gitee From f80c601721b5cc4864cd57ec711bf9f2217cd9b4 Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 15:04:44 +0800 Subject: [PATCH 7/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c53f94c9c..0ac015fbd 100644 --- a/README.md +++ b/README.md @@ -83,11 +83,11 @@ ## 算子开发样例 | **目录名称** | **样例介绍** | **开发语言** | |---|---|---| -| [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | Ascend C | -| [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | Ascend C | -| [MatmulCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulCustomSample) | 基于AscendC的Matmul自定义Cube算子及调用样例 | Ascend C | -| [MatmulLeakyReluCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulLeakyReluCustomSample) | 基于AscendC的MatmulLeakyRelu自定义Cube+Vector算子及调用样例 | Ascend C | -| [UnalignAddCustomSample](https://gitee.com/ascend/samples/tree/master/operator_contrib/UnalignAddCustomSample) | 基于AscendC的Add算子(非对齐)算子及调用样例 | Ascend C | +| [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | C++ | +| [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | C++ | +| [MatmulCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulCustomSample) | 基于AscendC的Matmul自定义Cube算子及调用样例 | C++ | +| [MatmulLeakyReluCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulLeakyReluCustomSample) | 基于AscendC的MatmulLeakyRelu自定义Cube+Vector算子及调用样例 | C++ | +| [UnalignAddCustomSample](https://gitee.com/ascend/samples/tree/master/operator_contrib/UnalignAddCustomSample) | 基于AscendC的Add算子(非对齐)算子及调用样例 | C++ | ## 变更日志 -- Gitee From f21efb7bb858c05b8d4cd2acd1773b6833a697d7 Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 15:38:53 +0800 Subject: [PATCH 8/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ac015fbd..995adebf4 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ | [sampleYOLOV7NMSONNX](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7NMSONNX) | 后处理使用CANN算子进行加速,基于YoloV7模型实现的物体检测应用 | Python | ## 算子开发样例 -| **目录名称** | **样例介绍** | **开发语言** | +| **样例名称** | **样例介绍** | **开发语言** | |---|---|---| | [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | C++ | | [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | C++ | -- Gitee From 8bdaba0087bee8ab879953162a781d4e1e569b70 Mon Sep 17 00:00:00 2001 From: wan-zutao Date: Fri, 20 Jun 2025 15:40:04 +0800 Subject: [PATCH 9/9] =?UTF-8?q?readme=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 995adebf4..f4843ebb8 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,15 @@ ``` +## 算子开发样例 +| **样例名称** | **样例介绍** | **开发语言** | +|---|---|---| +| [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | C++ | +| [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | C++ | +| [MatmulCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulCustomSample) | 基于AscendC的Matmul自定义Cube算子及调用样例 | C++ | +| [MatmulLeakyReluCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulLeakyReluCustomSample) | 基于AscendC的MatmulLeakyRelu自定义Cube+Vector算子及调用样例 | C++ | +| [UnalignAddCustomSample](https://gitee.com/ascend/samples/tree/master/operator_contrib/UnalignAddCustomSample) | 基于AscendC的Add算子(非对齐)算子及调用样例 | C++ | + ## 推理开发样例 | **样例名称** | **样例介绍** | **开发语言** | |---|---|---| @@ -80,15 +89,6 @@ | [sampleCrowdCounting](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleCrowdCounting) | 统计图片人头数量,基于CrowdCounting模型实现的推理应用 | Python | | [sampleYOLOV7NMSONNX](https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleYOLOV7NMSONNX) | 后处理使用CANN算子进行加速,基于YoloV7模型实现的物体检测应用 | Python | -## 算子开发样例 -| **样例名称** | **样例介绍** | **开发语言** | -|---|---|---| -| [AddCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/AddCustomSample) | 基于Ascend C的Add自定义Vector算子及调用样例 | C++ | -| [HelloWorldSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/HelloWorldSample) | 基于Ascend C的自定义算子调用结构演示样例 | C++ | -| [MatmulCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulCustomSample) | 基于AscendC的Matmul自定义Cube算子及调用样例 | C++ | -| [MatmulLeakyReluCustomSample](https://gitee.com/ascend/samples/tree/master/operator/ascendc/tutorials/MatmulLeakyReluCustomSample) | 基于AscendC的MatmulLeakyRelu自定义Cube+Vector算子及调用样例 | C++ | -| [UnalignAddCustomSample](https://gitee.com/ascend/samples/tree/master/operator_contrib/UnalignAddCustomSample) | 基于AscendC的Add算子(非对齐)算子及调用样例 | C++ | - ## 变更日志 -- Gitee