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.PipeCompilerInterface.PipeCompilerInterface Class Reference

This class implements methods for communication with compiler using pipes. More...

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

Public Member Functions

 __init__ (self, data_format=None, pipe_name=None)
 Initializes PipeCompilerInterface object.
 
 __del__ (self)
 
 evaluate (self, mode=None)
 Sends query to compiler and returns deserialized result.
 
 init_pipes (self)
 Creates pipe files for communication.
 
 reset_pipes (self)
 Resets the buffered reader/writers.
 
 close_pipes (self)
 Closes the buffered reader/writers.
 
 remove_pipes (self)
 Deletes the pipe files.
 
- Public Member Functions inherited from compilerinterface.BaseCompilerInterface.BaseCompilerInterface
 populate_buffer (self, data)
 Places data for next request into a buffer after serialization.
 

Public Attributes

 pipe_name
 
 to_compiler
 
 from_compiler
 
 tc_buffer
 
 fc_buffer
 
 buffer
 
- Public Attributes inherited from compilerinterface.BaseCompilerInterface.BaseCompilerInterface
 serdes_obj
 

Detailed Description

This class implements methods for communication with compiler using pipes.

Definition at line 20 of file PipeCompilerInterface.py.

Constructor & Destructor Documentation

◆ __init__()

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.__init__ ( self,
data_format = None,
pipe_name = None )

Initializes PipeCompilerInterface object.

Parameters
data_formatData format for serialization
pipe_nameName for pipe file

Reimplemented from compilerinterface.BaseCompilerInterface.BaseCompilerInterface.

Definition at line 24 of file PipeCompilerInterface.py.

◆ __del__()

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.__del__ ( self)

Definition at line 34 of file PipeCompilerInterface.py.

Member Function Documentation

◆ close_pipes()

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.close_pipes ( self)

Closes the buffered reader/writers.

Definition at line 70 of file PipeCompilerInterface.py.

◆ evaluate()

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.evaluate ( self,
mode = None )

Sends query to compiler and returns deserialized result.

Reimplemented from compilerinterface.BaseCompilerInterface.BaseCompilerInterface.

Definition at line 39 of file PipeCompilerInterface.py.

◆ init_pipes()

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.init_pipes ( self)

Creates pipe files for communication.

Definition at line 53 of file PipeCompilerInterface.py.

◆ remove_pipes()

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.remove_pipes ( self)

Deletes the pipe files.

Definition at line 78 of file PipeCompilerInterface.py.

◆ reset_pipes()

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.reset_pipes ( self)

Resets the buffered reader/writers.

Definition at line 65 of file PipeCompilerInterface.py.

Member Data Documentation

◆ buffer

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.buffer

Definition at line 31 of file PipeCompilerInterface.py.

◆ fc_buffer

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.fc_buffer

Definition at line 30 of file PipeCompilerInterface.py.

◆ from_compiler

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.from_compiler

Definition at line 28 of file PipeCompilerInterface.py.

◆ pipe_name

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.pipe_name

Definition at line 26 of file PipeCompilerInterface.py.

◆ tc_buffer

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.tc_buffer

Definition at line 29 of file PipeCompilerInterface.py.

◆ to_compiler

compilerinterface.PipeCompilerInterface.PipeCompilerInterface.to_compiler

Definition at line 27 of file PipeCompilerInterface.py.


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