Program Listing for File model_task.h

Return to documentation for file (src/models/model_task.h)

#pragma once

#include <string>

namespace marian {

struct ModelTask {
  virtual ~ModelTask() {}
  virtual void run() = 0;
};

struct ModelServiceTask {
  virtual ~ModelServiceTask() {}
  virtual std::string run(const std::string&) = 0;
};
}  // namespace marian