diff --git a/paddle/fluid/pybind/tensor.cc b/paddle/fluid/pybind/tensor.cc index b2c83177284486..ddd5a8ab68f3a5 100644 --- a/paddle/fluid/pybind/tensor.cc +++ b/paddle/fluid/pybind/tensor.cc @@ -792,7 +792,8 @@ void BindTensor(pybind11::module &m) { // NOLINT tensor.ResetHolderWithType( shared_reader_holder, static_cast(t[3].cast())); - tensor.Resize(common::make_ddim(t[4].cast>())); + tensor.Resize(common::make_ddim( + t[4].cast>())); return tensor; },