26#ifndef PipeModelRunner_H
27#define PipeModelRunner_H
32#include "llvm/Support/FileSystem.h"
35#include <system_error>
68 void send(
void *data);
The MLModelRunner class is the main interface for interacting with the ML models.
MLModelRunner - The main interface for interacting with the ML models.
Kind
Type of the MLModelRunner.
A MLModelRunner that asks for advice from an external agent, or host.
virtual ~PipeModelRunner()
std::string readNBytes(size_t N)
void requestExit() override
std::unique_ptr< llvm::raw_fd_ostream > OutStream
PipeModelRunner(llvm::StringRef OutboundName, llvm::StringRef InboundName, SerDesKind Kind, llvm::LLVMContext *Ctx=nullptr)
static bool classof(const MLModelRunner *R)
void * evaluateUntyped() override
Should be implemented by the derived class to call the model and get the result.
SerDesKind
This is the base class for SerDes.