[XPU] Alias is_current_stream_capturing to XPU in cuda wrapper (#50526)
Signed-off-by: Sundaresan-G <sundaresan.g@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
co-authored by
Kunshang Ji
parent
4719a9b8f5
commit
999dd8b490
@@ -60,4 +60,5 @@ def _torch_cuda_wrapper():
|
||||
torch.cuda.graph = partial(torch.xpu.graph)
|
||||
torch.cuda.CUDAGraph = torch.xpu.XPUGraph
|
||||
torch.cuda.graph_pool_handle = partial(torch.xpu.graph_pool_handle)
|
||||
torch.cuda.is_current_stream_capturing = torch.xpu.is_current_stream_capturing
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user