[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:
co-authored by
Andreas Karatzas
parent
dffb863c97
commit
cc5dd0a857
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user