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

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>

Collaboration diagram for MLBridge::Agent:
Collaboration graph
[legend]

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

ONNXModelmodel
 

Detailed Description

Agent is a wrapper around the ONNXModel class, interfaces with the Environment class to support ML/RL model inference via ONNXModel.

Definition at line 30 of file agent.h.

Constructor & Destructor Documentation

◆ Agent()

MLBridge::Agent::Agent ( std::string model_path)

Definition at line 23 of file agent.cpp.

Member Function Documentation

◆ computeAction()

unsigned MLBridge::Agent::computeAction ( Observation & obs)

Runs the ONNX model on the input Observation and returns the output.

Definition at line 28 of file agent.cpp.

Member Data Documentation

◆ model

ONNXModel* MLBridge::Agent::model
private

Definition at line 31 of file agent.h.


The documentation for this class was generated from the following files: