MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
|
Agent is a wrapper around the ONNXModel class, interfaces with the Environment class to support ML/RL model inference via ONNXModel. More...
#include <agent.h>
Public Member Functions | |
Agent (std::string model_path) | |
unsigned | computeAction (Observation &obs) |
Runs the ONNX model on the input Observation and returns the output. | |
Private Attributes | |
ONNXModel * | model |
Agent is a wrapper around the ONNXModel class, interfaces with the Environment class to support ML/RL model inference via ONNXModel.
unsigned MLBridge::Agent::computeAction | ( | Observation & | obs | ) |