Skip to content

refine paddle inference api#26774

Merged
jiweibo merged 8 commits intoPaddlePaddle:developfrom
jiweibo:refine_infer_api
Aug 28, 2020
Merged

refine paddle inference api#26774
jiweibo merged 8 commits intoPaddlePaddle:developfrom
jiweibo:refine_infer_api

Conversation

@jiweibo
Copy link
Contributor

@jiweibo jiweibo commented Aug 28, 2020

PR types

New features

PR changes

APIs

Describe

Another copy of pr #26098

Due to historical reasons, there are many kinds of API in paddle inference at present, which is a great challenge for users to use. Therefore, we re optimized the API. The details are as follows:

  1. We support forward compatibility, that is, all previous APIs can be used, but will be officially removed in the next two versions.

  2. In this version,all interfaces in paddle_infer namespace.

  3. Use paddle_infer::Config to do inference configuration.

  4. Use paddle_infer:: Tensor to represent input and output

  5. Use paddle_infer::Predictor to represent the inference engine.

  6. Use paddle_infer::CreatePredictor(Config&config) to create inference engine.

@paddle-bot-old
Copy link

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

@jiweibo jiweibo requested a review from Superjomn August 28, 2020 08:40
Copy link
Contributor

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

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@jiweibo jiweibo merged commit 68e0560 into PaddlePaddle:develop Aug 28, 2020
@jiweibo jiweibo deleted the refine_infer_api branch August 28, 2020 12:01
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.

4 participants