torch.cuda.get_stream_from_external
- torch.cuda.get_stream_from_external(data_ptr, device=None)
Return a
Streamfrom an externally allocated CUDA stream.This function is used to wrap streams allocated in other libraries in order to facilitate data exchange and multi-library interactions.