From f17e9d74089df6ef19b7e1312ec23320f7b09bab Mon Sep 17 00:00:00 2001 From: guru4elephant Date: Sat, 15 Feb 2020 09:26:04 +0800 Subject: [PATCH] remove some comments --- core/general-server/op/general_text_infer_op.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/general-server/op/general_text_infer_op.cpp b/core/general-server/op/general_text_infer_op.cpp index 42be5ed0..79e67104 100644 --- a/core/general-server/op/general_text_infer_op.cpp +++ b/core/general-server/op/general_text_infer_op.cpp @@ -129,10 +129,6 @@ int GeneralTextInferOp::inference() { k < out->at(idx).lod[0][j + 1]; k++) { res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data( data_ptr[k]); - /* - res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_data( - reinterpret_cast(&(data_ptr[k])), sizeof(float)); - */ } } } else { @@ -140,10 +136,6 @@ int GeneralTextInferOp::inference() { for (int k = j * cap; k < (j + 1) * cap; ++k) { res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data( data_ptr[k]); - /* - res->mutable_insts(j)->mutable_tensor_array(var_idx)->add_float_data( - reinterpret_cast(&(data_ptr[k])), sizeof(float)); - */ } } } -- GitLab