MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Classes | Functions
PipeModelRunnerCWrapper.cpp File Reference

This file defines the C APIs for PipeModelRunner. More...

#include "MLModelRunner/C/PipeModelRunner.h"
#include "MLModelRunner/MLModelRunner.h"
#include "MLModelRunner/PipeModelRunner.h"
#include <vector>
Include dependency graph for PipeModelRunnerCWrapper.cpp:

Go to the source code of this file.

Classes

struct  PipeModelRunnerWrapper
 

Functions

PipeModelRunnerWrappercreatePipeModelRunner (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.
 

Detailed Description

This file defines the C APIs for PipeModelRunner.

Definition in file PipeModelRunnerCWrapper.cpp.

Function Documentation

◆ createPipeModelRunner()

PipeModelRunnerWrapper * createPipeModelRunner ( const char * OutboundName,
const char * InboundName,
int SerDesType )

Creates an instance of PipeModelRunnerWrapper.

Definition at line 26 of file PipeModelRunnerCWrapper.cpp.

◆ destroyPipeModelRunner()

void destroyPipeModelRunner ( PipeModelRunnerWrapper * obj)

Destroys an instance of PipeModelRunnerWrapper.

Definition at line 57 of file PipeModelRunnerCWrapper.cpp.

◆ evaluateFloatFeatures()

float evaluateFloatFeatures ( PipeModelRunnerWrapper * obj)

Definition at line 53 of file PipeModelRunnerCWrapper.cpp.

◆ evaluateIntFeatures()

int evaluateIntFeatures ( PipeModelRunnerWrapper * obj)

Evaluates the features of PipeModelRunnerWrapper.

Definition at line 49 of file PipeModelRunnerCWrapper.cpp.

◆ populateFloatFeatures()

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.

◆ populateIntFeatures()

void populateIntFeatures ( PipeModelRunnerWrapper * obj,
const char * name,
const int * data,
const int size )

Definition at line 42 of file PipeModelRunnerCWrapper.cpp.