diff --git a/paddle/fluid/pybind/inference_api.cc b/paddle/fluid/pybind/inference_api.cc index fd77df192dd20b..cc6808a5ad42f8 100644 --- a/paddle/fluid/pybind/inference_api.cc +++ b/paddle/fluid/pybind/inference_api.cc @@ -813,9 +813,9 @@ void BindAnalysisConfig(py::module *m) { None. Examples: .. code-block:: python - from paddle.fluid.core import AnalysisConfig + from paddle.inference import Config - config = AnalysisConfig("") + config = Config("") config.enable_mkldnn() config.disable_mkldnn_fc_passes() )DOC")