torch.xpu.get_stream_from_external
- torch.xpu.get_stream_from_external(data_ptr, device=None)
Return a
Streamfrom an external SYCL queue.This function is used to wrap SYCL queue created in other libraries in order to facilitate data exchange and multi-library interactions.