#include "linear/Linear.h"
#include "exec/Executor.h"
#include "exec/DataflowExecutor.h"
-#include "exec/interp/Interpreter.h"
+#include "exec/interp/ExecManager.h"
#include "util/config/ConfigManager.h"
namespace neurun
if (!checkCompilable())
{
- _executor = std::make_shared<exec::interp::Interpreter>(_model->shareModel());
+ _executor = std::make_shared<exec::interp::ExecManager>(_model->shareModel());
return;
}
* limitations under the License.
*/
-#include "Interpreter.h"
+#include "ExecManager.h"
namespace neurun
{
namespace interp
{
-void Interpreter::setInput(const neurun::model::operand::IO::Index &index,
+void ExecManager::setInput(const neurun::model::operand::IO::Index &index,
const neurun::model::operand::TypeInfo &type,
const neurun::model::operand::Shape &shape, const void *buffer,
size_t length)
_tensor_info_map.insert({input_index, info});
}
-void Interpreter::setOutput(const neurun::model::operand::IO::Index &index,
+void ExecManager::setOutput(const neurun::model::operand::IO::Index &index,
const neurun::model::operand::TypeInfo &type,
const neurun::model::operand::Shape &shape, void *buffer, size_t length)
{
_tensor_info_map.insert({output_index, info});
}
-void Interpreter::execute(void) { throw std::runtime_error{"NYI: Interpreter execute"}; }
+void ExecManager::execute(void) { throw std::runtime_error{"NYI: ExecManager execute"}; }
} // namespace interp
} // namespace exec
*/
/**
- * @file Interpreter.h
- * @brief This file contains Interpreter class to run interpreter
+ * @file ExecManager.h
+ * @brief This file contains ExecManager class\n
+ * to manage interpreter execution and environment
*/
-#ifndef __NEURUN_EXEC_INTERP_INTERPRETER_H_
-#define __NEURUN_EXEC_INTERP_INTERPRETER_H_
+#ifndef __NEURUN_EXEC_INTERP_EXEC_MANAGER_H_
+#define __NEURUN_EXEC_INTERP_EXEC_MANAGER_H_
#include "model/operand/IndexMap.h"
#include "compiler/TensorInfo.h"
/**
* @brief Class to execute model using interpreter
*/
-class Interpreter final : public IExecutor
+class ExecManager final : public IExecutor
{
public:
- Interpreter(const std::shared_ptr<const model::Model> &model) : _model{model}
+ ExecManager(const std::shared_ptr<const model::Model> &model) : _model{model}
{
// DO NOTHING
}
} // namespace exec
} // namespace neurun
-#endif // __NEURUN_EXEC_INTERP_INTERPRETER_H_
+#endif // __NEURUN_EXEC_INTERP_EXEC_MANAGER_H_