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

This base class specifies methods for communication with compiler. More...

Inheritance diagram for compilerinterface.BaseCompilerInterface.BaseCompilerInterface:
Inheritance graph
[legend]
Collaboration diagram for compilerinterface.BaseCompilerInterface.BaseCompilerInterface:
Collaboration graph
[legend]

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
 

Detailed Description

This base class specifies methods for communication with compiler.

Definition at line 21 of file BaseCompilerInterface.py.

Constructor & Destructor Documentation

◆ __init__()

compilerinterface.BaseCompilerInterface.BaseCompilerInterface.__init__ ( self,
data_format = None )

Member Function Documentation

◆ evaluate()

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.

◆ populate_buffer()

compilerinterface.BaseCompilerInterface.BaseCompilerInterface.populate_buffer ( self,
data )

Places data for next request into a buffer after serialization.

Parameters
Unserializeddata for next query to compiler

Definition at line 28 of file BaseCompilerInterface.py.

Member Data Documentation

◆ serdes_obj

compilerinterface.BaseCompilerInterface.BaseCompilerInterface.serdes_obj

Definition at line 24 of file BaseCompilerInterface.py.


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