Created by: NHZlX
PR types
New features
PR changes
APIs
Describe
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:
-
We support forward compatibility, that is, all previous APIs can be used, but will be officially removed in the next two versions.
-
In this version,all interfaces in paddle_infer namespace.
-
Use
paddle_infer::Config
to do inference configuration. -
Use
paddle_infer:: Tensor
to represent input and output -
Use
paddle_infer::Predictor
to represent the inference engine. -
Use
paddle_infer::CreatePredictor(Config&config)
to create inference engine.