Process finished with exit code 139 (interrupted by signal 11: SIGSEGV): convert torch::Tensor to std::vector!

The reason why arise this error is that my torch::Tensor is in c10::kCUDA, but i want copy its content to c10::CPU’s std::vector. So it cause SIGSEGV error.