提交 88735477 编写于 作者: G guru4elephant

remove some comments

上级 7daa316e
...@@ -129,10 +129,6 @@ int GeneralTextInferOp::inference() { ...@@ -129,10 +129,6 @@ int GeneralTextInferOp::inference() {
k < out->at(idx).lod[0][j + 1]; k++) { k < out->at(idx).lod[0][j + 1]; k++) {
res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data( res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data(
data_ptr[k]); data_ptr[k]);
/*
res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_data(
reinterpret_cast<char *>(&(data_ptr[k])), sizeof(float));
*/
} }
} }
} else { } else {
...@@ -140,10 +136,6 @@ int GeneralTextInferOp::inference() { ...@@ -140,10 +136,6 @@ int GeneralTextInferOp::inference() {
for (int k = j * cap; k < (j + 1) * cap; ++k) { for (int k = j * cap; k < (j + 1) * cap; ++k) {
res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data( res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data(
data_ptr[k]); data_ptr[k]);
/*
res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data(
reinterpret_cast<char *>(&(data_ptr[k])), sizeof(float));
*/
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册