Rate this Page

torch.xpu.is_current_stream_capturing#

torch.xpu.is_current_stream_capturing()[source]#

Return True if XPU graph capture is underway on the current XPU stream, False otherwise.

If a XPU context does not exist on the current device, returns False without initializing the context.

Return type:

bool