#include "llvm/Analysis/InteractiveModelRunner.h"
#include "llvm/Analysis/MLModelRunner.h"
#include "llvm/Analysis/TensorSpec.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/raw_ostream.h"
usingnamespacellvm;
static cl::opt<bool> DebugReply(
"interactive-model-runner-echo-reply", cl::init(false), cl::Hidden,
cl::desc("The InteractiveModelRunner will echo back to stderr "
"the data received from the host (for debugging purposes)."));
InteractiveModelRunner::InteractiveModelRunner(
LLVMContext &Ctx, const std::vector<TensorSpec> &Inputs,
const TensorSpec &Advice, StringRef OutboundName, StringRef InboundName)
: … { … }
InteractiveModelRunner::~InteractiveModelRunner() { … }
void *InteractiveModelRunner::evaluateUntyped() { … }