From a88dfb238c7e5fa37a8e9d6a685c5b49f7fba3ea Mon Sep 17 00:00:00 2001 From: 13611516375 Date: Fri, 28 Oct 2022 14:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_CN.md | 83 ++++++++++++++++--- community/ops/CMakeLists.txt | 2 +- .../add/aicpu/impl/{add_kernels.cc => add.cc} | 2 +- .../add/aicpu/impl/{add_kernels.h => add.h} | 0 4 files changed, 75 insertions(+), 12 deletions(-) rename community/ops/add/aicpu/impl/{add_kernels.cc => add.cc} (97%) rename community/ops/add/aicpu/impl/{add_kernels.h => add.h} (100%) diff --git a/README_CN.md b/README_CN.md index b37f5c7f..4b372134 100644 --- a/README_CN.md +++ b/README_CN.md @@ -7,29 +7,77 @@ 仓库目录结构如下所示。
cann_op_contrib
+
cmake
+
external
+存放依赖的第三方库编译文件
+
+
util
+存放工具类编译文件
+
+dependencies.cmake
+
community
common
- inc
- src
- utils
+
inc
+主要存放算子原型工具类头文件
+
+
src
+主要存放算子原型工具类实现
+
+
utils
+主要存放算子实现工具类
+
+
framework
- onnx
- tf
+
onnx
+add_plugin.cc 算子适配onnx框架插件代码
+CMakeLists.txt 算子适配插件编译文件
+
+
tf
+add_plugin.cc 算子适配tf框架插件代码
+CMakeLists.txt 算子适配插件编译文件
+
ops
add(以add算子为例)
ai_core
- cust_impl
- op_info_cfg
+
cust_impl
+add.py 算子实现代码
+
+
op_info_cfg
+
ascend310
+add.ini 算子信息配置文件
+
+
ascend310p
+add.ini 算子信息配置文件
+
+
ascend910
+add.ini 算子信息配置文件
+
+
ascend910b
+add.ini 算子信息配置文件
+
+
+ op_tiling
ai_cpu
- impl
- op_info_cfg
+
impl
+add.cc 算子实现代码
+add.h 算子代码头文件
+
+
op_info_cfg
+add.ini 算子信息配置文件
+
op_proto
- inc
+ +
inc
+add_op.h 算子原型IR注册文件
+
+ +add_proto.cc 算子原型实现文件
@@ -39,6 +87,21 @@
+ +
scripts
+ai_core_parse_ini.py tbe算子信息配置解析脚本
+CANN_OP_CONTRIB_install.sh 生态仓算子部署脚本
+install_run.sh 生态仓run包安装脚本
+parse_ini.py AiCpu算子信息配置解析脚本
+
+
third_party
+metadef metadef仓代码
+ +
+CMakeLists.txt 生态仓总编译脚本
+build.sh 编译脚本,用于触发生态仓代码编译及编译出的文件路径变更
+ +pack.sh 生态仓run包打包脚本
#### 环境要求 diff --git a/community/ops/CMakeLists.txt b/community/ops/CMakeLists.txt index cbccc012..304e4f46 100644 --- a/community/ops/CMakeLists.txt +++ b/community/ops/CMakeLists.txt @@ -303,7 +303,7 @@ set(AICPU_INC add_library(cust_aicpu_kernels SHARED ${AICPU_SRC} ) -add_dependencies(cust_aicpu_kernels eigen) +add_dependencies(cust_aicpu_kernels eigen external_protobuf) target_include_directories(cust_aicpu_kernels PRIVATE ${AICPU_INC} ) diff --git a/community/ops/add/aicpu/impl/add_kernels.cc b/community/ops/add/aicpu/impl/add.cc similarity index 97% rename from community/ops/add/aicpu/impl/add_kernels.cc rename to community/ops/add/aicpu/impl/add.cc index 9f97936d..d02fbc33 100644 --- a/community/ops/add/aicpu/impl/add_kernels.cc +++ b/community/ops/add/aicpu/impl/add.cc @@ -3,7 +3,7 @@ * Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved. * Description: implement of Add */ -#include "add_kernels.h" +#include "add.h" #include "utils/eigen_tensor.h" #include "utils/kernel_util.h" diff --git a/community/ops/add/aicpu/impl/add_kernels.h b/community/ops/add/aicpu/impl/add.h similarity index 100% rename from community/ops/add/aicpu/impl/add_kernels.h rename to community/ops/add/aicpu/impl/add.h -- Gitee