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

[Inference] Support NNAdapter and ascend310 #35226

Merged
merged 22 commits into from
Sep 22, 2021

Conversation

JZZ-NOTE
Copy link
Contributor

@JZZ-NOTE JZZ-NOTE commented Aug 27, 2021

PR types

Others

PR changes

Others

Describe

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进行预测,对其它方向均没有侵入

@CLAassistant
Copy link

CLAassistant commented Aug 27, 2021

CLA assistant check
All committers have signed the CLA.

@paddle-bot-old
Copy link

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

cmake/external/lite.cmake Outdated Show resolved Hide resolved
Copy link
Contributor

@jiweibo jiweibo left a comment

Choose a reason for hiding this comment

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

后续需提供python侧接口

Copy link
Contributor

@jiweibo jiweibo 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

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

cmake/external/lite.cmake Show resolved Hide resolved
python/setup.py.in Show resolved Hide resolved
@shentanyue
Copy link
Contributor

LGTM

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.

@jiweibo jiweibo merged commit 10e5304 into PaddlePaddle:develop Sep 22, 2021
ghost pushed a commit to piotrekobi/Paddle that referenced this pull request Sep 24, 2021
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
@JZZ-NOTE JZZ-NOTE deleted the 310_subgraph branch January 11, 2023 07:31
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.

8 participants