[MRV1] Scope breakable cudagraphs to the piecewise path only (#56312)

Signed-off-by: Nick Hill <nickhill123@gmail.com>
Co-authored-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Nick Hill
2026-09-11 19:55:34 +00:00
committed by GitHub
co-authored by Andreas Karatzas
parent dffb863c97
commit cc5dd0a857
4 changed files with 165 additions and 17 deletions
+3 -1
View File
@@ -221,7 +221,9 @@ class CUDAGraphWrapper:
def unwrap(self) -> Callable[..., Any]:
# in case we need to access the original runnable.
return self.runnable
runnable = self.runnable
# Recurse through nested wrappers.
return runnable.unwrap() if hasattr(runnable, "unwrap") else runnable
@property
def cudagraph_wrapper(self) -> "CUDAGraphWrapper":