MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
|
This file defines the C API for PipeModelRunner. More...
Go to the source code of this file.
Typedefs | |
typedef struct PipeModelRunnerWrapper | PipeModelRunnerWrapper |
Functions | |
PipeModelRunnerWrapper * | createPipeModelRunner (const char *outBoundName, const char *inBoundName, int serDesType) |
Creates an instance of PipeModelRunnerWrapper. | |
void | populateFloatFeatures (PipeModelRunnerWrapper *obj, const char *name, const float *data, const int size) |
Populates the features of PipeModelRunnerWrapper. | |
void | populateIntFeatures (PipeModelRunnerWrapper *obj, const char *name, const int *data, const int size) |
int | evaluateIntFeatures (PipeModelRunnerWrapper *obj) |
Evaluates the features of PipeModelRunnerWrapper. | |
float | evaluateFloatFeatures (PipeModelRunnerWrapper *obj) |
void | destroyPipeModelRunner (PipeModelRunnerWrapper *obj) |
Destroys an instance of PipeModelRunnerWrapper. | |
This file defines the C API for PipeModelRunner.
PipeModelRunner is a wrapper around the MLModelRunner class that provides an interface for the MLCompilerBridge to interact with the PipeModelRunner class.
Usage:
Definition in file PipeModelRunner.h.
typedef struct PipeModelRunnerWrapper PipeModelRunnerWrapper |
Definition at line 32 of file PipeModelRunner.h.
PipeModelRunnerWrapper * createPipeModelRunner | ( | const char * | outBoundName, |
const char * | inBoundName, | ||
int | serDesType ) |
Creates an instance of PipeModelRunnerWrapper.
Definition at line 26 of file PipeModelRunnerCWrapper.cpp.
void destroyPipeModelRunner | ( | PipeModelRunnerWrapper * | obj | ) |
Destroys an instance of PipeModelRunnerWrapper.
Definition at line 57 of file PipeModelRunnerCWrapper.cpp.
float evaluateFloatFeatures | ( | PipeModelRunnerWrapper * | obj | ) |
Definition at line 53 of file PipeModelRunnerCWrapper.cpp.
int evaluateIntFeatures | ( | PipeModelRunnerWrapper * | obj | ) |
Evaluates the features of PipeModelRunnerWrapper.
Definition at line 49 of file PipeModelRunnerCWrapper.cpp.
void populateFloatFeatures | ( | PipeModelRunnerWrapper * | obj, |
const char * | name, | ||
const float * | data, | ||
const int | size ) |
Populates the features of PipeModelRunnerWrapper.
Definition at line 35 of file PipeModelRunnerCWrapper.cpp.
void populateIntFeatures | ( | PipeModelRunnerWrapper * | obj, |
const char * | name, | ||
const int * | data, | ||
const int | size ) |
Definition at line 42 of file PipeModelRunnerCWrapper.cpp.