MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Environment Struct Reference

Public Member Functions

 Environment ()
 
void setNumFeatures (int numFeatures)
 
void setStepFunc (float *(*stepFunc)(Action action))
 
void setResetFunc (float *(*resetFunc)())
 
void setNextAgent (char *agentName)
 
std::string getNextAgent ()
 
Observation step (Action action)
 
Observation reset ()
 
bool checkDone ()
 
void setDone ()
 
void resetDone ()
 

Private Attributes

float *(* stepFunc )(Action action)
 
float *(* resetFunc )()
 
int numFeatures
 
std::string nextAgent
 
bool done
 

Detailed Description

Definition at line 36 of file ONNXModelRunnerCWrapper.cpp.

Constructor & Destructor Documentation

◆ Environment()

Environment::Environment ( )
inline

Definition at line 46 of file ONNXModelRunnerCWrapper.cpp.

Member Function Documentation

◆ checkDone()

bool Environment::checkDone ( )
inline

Definition at line 76 of file ONNXModelRunnerCWrapper.cpp.

◆ getNextAgent()

std::string Environment::getNextAgent ( )
inline

Definition at line 60 of file ONNXModelRunnerCWrapper.cpp.

◆ reset()

Observation Environment::reset ( )
inline

Definition at line 69 of file ONNXModelRunnerCWrapper.cpp.

◆ resetDone()

void Environment::resetDone ( )
inline

Definition at line 78 of file ONNXModelRunnerCWrapper.cpp.

◆ setDone()

void Environment::setDone ( )
inline

Definition at line 77 of file ONNXModelRunnerCWrapper.cpp.

◆ setNextAgent()

void Environment::setNextAgent ( char * agentName)
inline

Definition at line 58 of file ONNXModelRunnerCWrapper.cpp.

◆ setNumFeatures()

void Environment::setNumFeatures ( int numFeatures)
inline

Definition at line 50 of file ONNXModelRunnerCWrapper.cpp.

◆ setResetFunc()

void Environment::setResetFunc ( float *(*)() resetFunc)
inline

Definition at line 56 of file ONNXModelRunnerCWrapper.cpp.

◆ setStepFunc()

void Environment::setStepFunc ( float *(*)(Action action) stepFunc)
inline

Definition at line 52 of file ONNXModelRunnerCWrapper.cpp.

◆ step()

Observation Environment::step ( Action action)
inline

Definition at line 62 of file ONNXModelRunnerCWrapper.cpp.

Member Data Documentation

◆ done

bool Environment::done
private

Definition at line 43 of file ONNXModelRunnerCWrapper.cpp.

◆ nextAgent

std::string Environment::nextAgent
private

Definition at line 42 of file ONNXModelRunnerCWrapper.cpp.

◆ numFeatures

int Environment::numFeatures
private

Definition at line 41 of file ONNXModelRunnerCWrapper.cpp.

◆ resetFunc

float *(* Environment::resetFunc) ()
private

Definition at line 40 of file ONNXModelRunnerCWrapper.cpp.

◆ stepFunc

float *(* Environment::stepFunc) (Action action)
private

Definition at line 39 of file ONNXModelRunnerCWrapper.cpp.


The documentation for this struct was generated from the following file: