MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
PipeModelRunner.h
Go to the documentation of this file.
1//===--- MLModelRunner/C/PipeModelRunner.h - C API for PipeModelRunner ---===//
2//
3// Part of the MLCompilerBridge Project, under the Apache License v2.0 with LLVM
4// Exceptions. See the LICENSE file for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===---------------------------------------------------------------------===//
22//===---------------------------------------------------------------------===//
23
24#ifndef PIPE_MODEL_RUNNER_WRAPPER_H
25#define PIPE_MODEL_RUNNER_WRAPPER_H
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31// Define an opaque pointer type for PipeModelRunnerWrapper
33
35PipeModelRunnerWrapper *createPipeModelRunner(const char *outBoundName,
36 const char *inBoundName,
37 int serDesType);
38
40void populateFloatFeatures(PipeModelRunnerWrapper *obj, const char *name,
41 const float *data, const int size);
42void populateIntFeatures(PipeModelRunnerWrapper *obj, const char *name,
43 const int *data, const int size);
44
48
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif // PIPE_MODEL_RUNNER_WRAPPER_H
void destroyPipeModelRunner(PipeModelRunnerWrapper *obj)
Destroys an instance of PipeModelRunnerWrapper.
int evaluateIntFeatures(PipeModelRunnerWrapper *obj)
Evaluates the features of PipeModelRunnerWrapper.
float evaluateFloatFeatures(PipeModelRunnerWrapper *obj)
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)
PipeModelRunnerWrapper * createPipeModelRunner(const char *outBoundName, const char *inBoundName, int serDesType)
Creates an instance of PipeModelRunnerWrapper.