代码拉取完成,页面将自动刷新
Ascend CANN Parser(简称parser)配合TF_Adapter、 ATC工具、IR构图等使用,开发者通过以上工具,借助parser能方便地将第三方框架的算法表示转换成Ascend IR,充分利用昇腾AI处理器卓越的运算能力。
parser
├── inc # 相关头文件
├── parser
| ├── caffe # caffe模型转换为Ascend IR
| ├── common # 转换使用的公共接口
| ├── func_to_graph # Convert the tensorflow functionDefs in the input model file to single GraphDefs
| ├── onnx # onnx模型转换为Ascend IR
| ├── tensorflow # tensorflow模型转换为Ascend IR
├── tests # DT测试目录
parser支持源码编译,进行源码编译前,首先确保你有昇腾910AI处理器的环境,同时确保系统满足以下要求:
说明: Parser仓源代码与CANN软件包存在配套关系,源码编译前请获取并安装对应版本的CANN软件包。
$ git clone https://gitee.com/ascend/parser.git
$ cd parser
$ git submodule init && git submodule update
Parser仓提供一键式编译能力,具体可以通过bash build.sh -h
查看:
bash build.sh --ascend_custom_path=${CANN_INSTALL_PATH}
ascend_custom_path
默认路径为/usr/local/Ascend/latest
,编译完成后会在output/package目录下生成CANN-parser-linux.{x86_64/aarch64}.run
包
Parser仓提供一键式编译执行开发者测试,详细配置可通过bash tests/run_test.sh -h
查看
bash tests/run_test.sh -u --ascend_custom_path=${CANN_INSTALL_PATH}
ascend_custom_path
默认路径为/usr/local/Ascend/latest
编译完成后,可通过如下命令安装或回滚:
# 安装:
./CANN-parser-linux.{x86_64/aarch64}.run --full --quiet --install-path=${CANN_INSTALL_PATH}
# 回滚:
./CANN-parser-linux.{x86_64/aarch64}.run --rollback --quiet --install-path=${CANN_INSTALL_PATH}
针对Parser仓,开发者准备本地代码与提交PR时需要重点关注如下几点:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型