#include "exec/Executor.h"
#include "exec/DataflowExecutor.h"
#include "exec/interp/Interpreter.h"
+#include "util/config/ConfigManager.h"
namespace neurun
{
dot_dumper.dumpIfNeeded("after_lower");
- const bool use_dataflow_executor = false; // TODO Read value from ConfigManager
+ const std::string executor_str =
+ config::ConfigManager::instance().get<std::string>(config::EXECUTOR);
+ const bool use_dataflow_executor = (executor_str == "Dataflow");
// Compile for DataflowExecutor
if (use_dataflow_executor)
CONFIG(DISABLE_COMPILE , bool , "0")
CONFIG(NEURUN_LOG_ENABLE , bool , "0")
CONFIG(CPU_MEMORY_PLANNER , std::string , "FirstFit")
+CONFIG(EXECUTOR , std::string , "Linear")
// Auto-generate all operations