Files
pytorch/torch/nativert/executor/ExecutorConfig.h
Georgia Phillips ba4ccf5d67 turn on executon frame clenaup by default (#160110)
Summary: Turning execution frame cleanup back on since D78621408 is done

Test Plan:
See D78621408

Rollback Plan:

Differential Revision: D79730674

Pull Request resolved: https://github.com/pytorch/pytorch/pull/160110
Approved by: https://github.com/jingsh
2025-08-08 02:13:48 +00:00

27 lines
759 B
C++

#pragma once
#include <torch/nativert/executor/memory/LayoutPlannerSettings.h>
#include <cstdint>
#include <string>
namespace torch::nativert {
struct ExecutorConfig {
bool validateInputs = false;
bool debugNan = false;
bool enableStaticCPUKernels = true;
bool runConstFolding = false;
bool doExecutionFrameCleanup = true;
bool tryFreeUnmanagedValuesAfterUse = true;
// allows up to max number of concurrent threads.
int64_t maxNumConcurrentThreads = 8;
// allows up to max number of parallel ops.
int64_t maxParallelOps = 1;
int64_t minNumExecutionFrames = 1;
int64_t executionFramePoolCleanupIntervalSec = 600;
LayoutPlannerSettings layoutPlannerSettings;
std::string modelName = "unknown";
};
} // namespace torch::nativert