diff --git a/core/general-server/op/general_infer_helper.h b/core/general-server/op/general_infer_helper.h
index 6a6b24329ed73cbb10e467f366ff04c4e2ac8031..4fa1995664a2dca449ebc228079c86919a32d328 100644
--- a/core/general-server/op/general_infer_helper.h
+++ b/core/general-server/op/general_infer_helper.h
@@ -61,6 +61,7 @@ static void CopyBlobInfo(const GeneralBlob* src, GeneralBlob* tgt) {
   memcpy(&(tgt->time_stamp[0]),
          &(src->time_stamp[0]),
          src->p_size * sizeof(int64_t));
+  tgt->p_size = src->p_size;
 }
 
 static void CopyLod(const paddle::PaddleTensor* src,