MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
|
This base class specifies methods for communication with compiler. More...
Public Member Functions | |
__init__ (self, data_format=None) | |
Initializes correct SerDes object. | |
populate_buffer (self, data) | |
Places data for next request into a buffer after serialization. | |
evaluate (self) | |
Sends query to compiler and returns deserialized result. | |
Public Attributes | |
serdes_obj | |
This base class specifies methods for communication with compiler.
Definition at line 21 of file BaseCompilerInterface.py.
compilerinterface.BaseCompilerInterface.BaseCompilerInterface.__init__ | ( | self, | |
data_format = None ) |
Initializes correct SerDes object.
Reimplemented in compilerinterface.PipeCompilerInterface.PipeCompilerInterface, and compilerinterface.GrpcCompilerInterface.GrpcCompilerInterface.
Definition at line 23 of file BaseCompilerInterface.py.
compilerinterface.BaseCompilerInterface.BaseCompilerInterface.evaluate | ( | self | ) |
Sends query to compiler and returns deserialized result.
Reimplemented in compilerinterface.GrpcCompilerInterface.GrpcCompilerInterface, and compilerinterface.PipeCompilerInterface.PipeCompilerInterface.
Definition at line 33 of file BaseCompilerInterface.py.
compilerinterface.BaseCompilerInterface.BaseCompilerInterface.populate_buffer | ( | self, | |
data ) |
Places data for next request into a buffer after serialization.
Unserialized | data for next query to compiler |
Definition at line 28 of file BaseCompilerInterface.py.
compilerinterface.BaseCompilerInterface.BaseCompilerInterface.serdes_obj |
Definition at line 24 of file BaseCompilerInterface.py.