未验证 提交 e4aa194b 编写于 作者: H hong19860320 提交者: GitHub

[LITE][NPU][XPU] Fix the data feeding of the input tensors in subgraph_pass_test (#2714)

上级 0176d4bf
......@@ -92,7 +92,7 @@ void FillInputTensors(
#define FILL_TENSOR_WITH_TYPE(type) \
auto input_tensor_data = input_tensor->mutable_data<type>(); \
for (int j = 0; j < input_tensor_size; j++) { \
input_tensor_data[i] = static_cast<type>(value); \
input_tensor_data[j] = static_cast<type>(value); \
}
for (int i = 0; i < input_tensor_shape.size(); i++) {
auto input_tensor = predictor->GetInput(i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册