提交 4ac34647 编写于 作者: B barrierye

fix response op

上级 7bfa78e0
...@@ -124,7 +124,7 @@ int GeneralResponseOp::inference() { ...@@ -124,7 +124,7 @@ int GeneralResponseOp::inference() {
} else { } else {
FetchInst *fetch_p = output->mutable_insts(0); FetchInst *fetch_p = output->mutable_insts(0);
for (int j = 0; j < cap; ++j) { for (int j = 0; j < cap; ++j) {
fetch_p->mutable_tensor_array(var_idx)->add_float_data(data_ptr[j]); fetch_p->mutable_tensor_array(var_idx)->add_int64_data(data_ptr[j]);
} }
} }
var_idx++; var_idx++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册