diff --git a/paddle/fluid/pybind/inference_api.cc b/paddle/fluid/pybind/inference_api.cc index 2a1de8c6724421b0ecc1bd5ff1d5b8c5f2de6b6a..e4927977aa3bd9d848160b002eecb579d34bb658 100644 --- a/paddle/fluid/pybind/inference_api.cc +++ b/paddle/fluid/pybind/inference_api.cc @@ -442,6 +442,8 @@ void BindAnalysisConfig(py::module *m) { #ifdef PADDLE_WITH_MKLDNN .def("quantizer_config", &AnalysisConfig::mkldnn_quantizer_config, py::return_value_policy::reference) + .def("set_mkldnn_cache_capacity", &AnalysisConfig::SetMkldnnCacheCapacity, + py::arg("capacity") = 0) #endif .def("set_mkldnn_op", &AnalysisConfig::SetMKLDNNOp) .def("set_model_buffer", &AnalysisConfig::SetModelBuffer)