|
MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
|
This class implements methods for communication with compiler using pipes. More...


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 | |
This class implements methods for communication with compiler using pipes.
Definition at line 20 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.__init__ | ( | self, | |
| data_format = None, | |||
| pipe_name = None ) |
Initializes PipeCompilerInterface object.
| data_format | Data format for serialization |
| pipe_name | Name for pipe file |
Reimplemented from compilerinterface.BaseCompilerInterface.BaseCompilerInterface.
Definition at line 24 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.__del__ | ( | self | ) |
Definition at line 34 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.close_pipes | ( | self | ) |
Closes the buffered reader/writers.
Definition at line 70 of file PipeCompilerInterface.py.
| 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.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.init_pipes | ( | self | ) |
Creates pipe files for communication.
Definition at line 53 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.remove_pipes | ( | self | ) |
Deletes the pipe files.
Definition at line 78 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.reset_pipes | ( | self | ) |
Resets the buffered reader/writers.
Definition at line 65 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.buffer |
Definition at line 31 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.fc_buffer |
Definition at line 30 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.from_compiler |
Definition at line 28 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.pipe_name |
Definition at line 26 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.tc_buffer |
Definition at line 29 of file PipeCompilerInterface.py.
| compilerinterface.PipeCompilerInterface.PipeCompilerInterface.to_compiler |
Definition at line 27 of file PipeCompilerInterface.py.