thanks tom,you said I can create a cuda tensor and use the tensor.data_ptr() as a destination, so can I be sure the return of datr_ptr()  from a cuda tensor is a cuda memory address ?
I had tried to use the data_ptr() of a created cuda tensor as the destination or source pointer of cudaMemcpy() before, it works well, but I’m not sure it is valid;