Shortcuts

Function c10::xpu::getStreamFromExternal

Function Documentation

XPUStream c10::xpu::getStreamFromExternal(sycl::queue *ext_stream, DeviceIndex device_index)

Get a XPUStream from a externally allocated one.

This is mainly for interoperability with different libraries where we want to operate on a non-torch allocated stream for data exchange or similar purposes

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources