diff --git a/core/general-server/op/general_response_op.cpp b/core/general-server/op/general_response_op.cpp old mode 100644 new mode 100755 index 27cfe1fa197773e2ed36bc20402fff4f2afb70c4..161e291117b8893703844ab07ec93a891fc46f27 --- a/core/general-server/op/general_response_op.cpp +++ b/core/general-server/op/general_response_op.cpp @@ -101,7 +101,11 @@ int GeneralResponseOp::inference() { var_idx = 0; // idx is the real index of FetchVar. - // idx is not the index of fetch_index. + // idx is not the index of FetchList. + // fetch_index is the real index in FetchVar of Fetchlist + // for example, FetchVar = {0:A, 1:B, 2:C} + // FetchList = {0:C,1:A}, at this situation. + // fetch_index = [2,0], C`index = 2 and A`index = 0 for (auto &idx : fetch_index) { Tensor *tensor = output->add_tensor(); tensor->set_name(in->at(idx).name);