From 21fab90d17167fc3d60012c26618c01e2a3b835e Mon Sep 17 00:00:00 2001 From: Wangzheee <634486483@qq.com> Date: Wed, 12 Oct 2022 15:45:18 +0800 Subject: [PATCH] test=infer-coverage (#46924) --- .../fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc b/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc index e851be7558..870c73fe1e 100644 --- a/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc +++ b/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc @@ -379,7 +379,7 @@ void run(paddle_infer::Predictor* predictor, std::vector* out_data) { // max_seq_len represents the max sentence length of all the sentences, only // length of // input i4 is useful, data means nothing. - int32_t i4[max_seq_len] = {0}; + float i4[max_seq_len] = {0}; auto input_names = predictor->GetInputNames(); // first input -- GitLab