MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Typedefs | Functions
PipeModelRunner.h File Reference

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct PipeModelRunnerWrapper 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 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:

  1. Create an instance of PipeModelRunnerWrapper using createPipeModelRunner
  2. Populate the features using populateXXXFeatures functions
  3. Evaluate the features using evaluateXXXFeatures functions
  4. Destroy the instance of PipeModelRunnerWrapper using destroyPipeModelRunner

Definition in file PipeModelRunner.h.

Typedef Documentation

◆ PipeModelRunnerWrapper

typedef struct PipeModelRunnerWrapper PipeModelRunnerWrapper

Definition at line 32 of file PipeModelRunner.h.

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.