Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cherry-pick] [Inference] Support NNAdapter and ascend310 #35882

Merged
merged 2 commits into from
Sep 22, 2021

Conversation

jiweibo
Copy link
Contributor

@jiweibo jiweibo commented Sep 20, 2021

PR types

Others

PR changes

Others

Describe

cherry-pick #35226

1、子图支持NNAdapter使用ascend310预测
2、DEMO pr: PaddlePaddle/Paddle-Inference-Demo#162

ARM+Ascend310编译方法:

cmake .. -DWITH_PYTHON=ON \
         -DPYTHON_EXECUTABLE=`which python` \
         -DCMAKE_BUILD_TYPE=Release \
         -DON_INFER=ON \
         -DWITH_MKL=OFF \
         -DWITH_LITE=ON \
         -DLITE_WITH_NNADAPTER=ON \
         -DNNADAPTER_WITH_HUAWEI_ASCEND_NPU=ON \
         -DLITE_GIT_TAG=develop \
         -DNPU_SDK_ROOT=/usr/local/Ascend/ascend-toolkit/latest \
         -DWITH_ARM=ON

相关接口改动及影响:
增加了config.NNAdapter()的接口,来使用lite ascend310进行预测,对其它方向均没有侵入

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@zhupengyang zhupengyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lanxianghit lanxianghit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for API change

@Superjomn Superjomn merged commit 2aaa417 into PaddlePaddle:release/2.2 Sep 22, 2021
@jiweibo jiweibo deleted the 2.2 branch September 22, 2021 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants