Is torch.cuda.Stream().cuda_stream equivalent to cudaStream_t

@ptrblck
As stream, I think the same equivalence is applied to torch.cuda.Event().cuda_event and cudaEvent_t as well. Right? just create pointer via cuda_event = torch.cuda.Event()._cuda_event ctypes.c_void_p(cuda_event).