This is just an example:
torch::Tensor out_tensor = module.forward({input_tensor}).toTensor();
std::cout << "dimensions:" << out_tensor.ndimension() << "\n";
std::cout << "v_size1:" << out_tensor.size(1) << "\n";
std::cout << "v_size2:" << out_tensor.size(2) << "\n";