Finally, I found this topic: CUDA_tensor_apply in extension gives undefined symbol 4
As I speculated above, this problem could be solved after I replace the _th_copy_ignoring_overlaps_ with at::_copy_from. (I will verify its correctness later )