torch.accelerator.current_stream torch.accelerator.current_stream(device=None, /) Return the currently selected stream for a given device. Parameters: device (, str, int, optional) – a given device that must match the current device type. If not given, use by default.