diff --git a/torch/nativert/executor/ExecutorConfig.h b/torch/nativert/executor/ExecutorConfig.h index 70f8fa88cf0d..fb57f2b6f2ef 100644 --- a/torch/nativert/executor/ExecutorConfig.h +++ b/torch/nativert/executor/ExecutorConfig.h @@ -11,7 +11,7 @@ struct ExecutorConfig { bool debugNan = false; bool enableStaticCPUKernels = true; bool runConstFolding = false; - bool doExecutionFrameCleanup = false; + bool doExecutionFrameCleanup = true; bool tryFreeUnmanagedValuesAfterUse = true; // allows up to max number of concurrent threads. int64_t maxNumConcurrentThreads = 8;