diff --git a/paddle/fluid/pybind/inference_api.cc b/paddle/fluid/pybind/inference_api.cc index e5a3f46d42553a58d4b73fb9b77b6268f7104fd7..8f74ef7e720f36fb98fa2224f433fc8843137320 100644 --- a/paddle/fluid/pybind/inference_api.cc +++ b/paddle/fluid/pybind/inference_api.cc @@ -224,9 +224,8 @@ void ZeroCopyStringTensorCreate(ZeroCopyTensor &tensor, // NOLINT } template -void PaddleInferTensorCreate( - paddle_infer::Tensor &tensor, // NOLINT - py::array_t data) { +void PaddleInferTensorCreate(paddle_infer::Tensor &tensor, // NOLINT + py::array_t data) { std::vector shape; std::copy_n(data.shape(), data.ndim(), std::back_inserter(shape)); tensor.Reshape(std::move(shape));