mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-21 15:49:31 +08:00
Sync v2.0 version of code to github repo
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
#include "paddle/extension.h"
|
||||
#include <map>
|
||||
|
||||
std::vector<paddle::Tensor> GetMmSplitFuse(const paddle::Tensor& task_input_ids,
|
||||
const paddle::Tensor& task_image_type_ids,
|
||||
@@ -60,6 +61,7 @@ std::vector<paddle::Tensor> GetMmSplitFuse(const paddle::Tensor& task_input_ids,
|
||||
st_idx += cur_st_len;
|
||||
}
|
||||
}
|
||||
|
||||
while (idx < seq_lens_origin) {
|
||||
idx = idx + split_fuse_text_size;
|
||||
if (idx >= seq_lens_origin) {
|
||||
|
Reference in New Issue
Block a user