Cannot get the value of torch::TensorList in vector

 for (i=0; i<score_.sizes()[0]; i++){
    if (score_[i].item<double>() > cfg_visualization_eval_score_threshold){
                        
        result_vector.push_back(torch::TensorList({clipped_boxes[i],score_[i],labels_[i]}));

        for(torch::TensorList result_vec: result_vector) {
                  std::cout<< result_vec.size() << "result_vec.size()" << std::endl;

                  std::cout<< result_vec << endl << "result_vec" << std::endl;
                  system("pause");
               }
           }
    }

I think push_back works well, but when I print out result_vec, it shows correct output of result_vec.size() as 3 but the value is weird as shown below.

[[ Tensor (undefined) ], [ Tensor (undefined) ], [ Tensor (undefined) ]]
result_vec

Is there anyone who knows the reason of this weird result?

1 Like