torch.xpu.current_stream torch.xpu.current_stream(device=None) Return the currently selected Stream for a given device. Parameters: device () – selected device. Returns the currently selected for the current device, given by , if is (default).