Use python to get GPU tensor address

how to use python to get physical memory address of a GPU tensor?

tensor.data_ptr() or ctypes.c_ulong(tensor.data_ptr()) should work.