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

Class for serialization and deserialization in various formats for communication. More...

Public Member Functions

 __init__ (self, data_format)
 Contructor for SerDes object.
 
 deserializeData (self, rawdata)
 Deserializes data for specified data format.
 
 deserializeJson (self, datastream)
 Deserializes and returns JSON data.
 
 deserializeBytes (self, datastream)
 Deserializes and returns bitstream data.
 
 deserializeProtobuf (self, datastream)
 
 serializeData (self, data)
 Serializes data and places it in a buffer.
 
 serializeJson (self, data)
 Serializes data to JSON.
 
 serializeBytes (self, data)
 Serializes data to bitstream.
 
 serializeProtobuf (self, data)
 
 getOutputBuffer (self)
 Returns value in buffer and empties it.
 

Public Attributes

 buffer
 
 data_format
 
 read_stream_iter
 
 serMap
 
 serializeJson
 
 serializeBytes
 
 serializeProtobuf
 
 desMap
 
 deserializeJson
 
 deserializeBytes
 
 deserializeProtobuf
 

Detailed Description

Class for serialization and deserialization in various formats for communication.

Definition at line 30 of file SerDes.py.

Constructor & Destructor Documentation

◆ __init__()

compilerinterface.SerDes.SerDes.__init__ ( self,
data_format )

Contructor for SerDes object.

Parameters
data_formatFormat for serialization and deserialization

Definition at line 33 of file SerDes.py.

Member Function Documentation

◆ deserializeBytes()

compilerinterface.SerDes.SerDes.deserializeBytes ( self,
datastream )

Deserializes and returns bitstream data.

Definition at line 63 of file SerDes.py.

◆ deserializeData()

compilerinterface.SerDes.SerDes.deserializeData ( self,
rawdata )

Deserializes data for specified data format.

Parameters
rawdataDatastream receiving serialized data
Returns
Deserialized data

Definition at line 52 of file SerDes.py.

◆ deserializeJson()

compilerinterface.SerDes.SerDes.deserializeJson ( self,
datastream )

Deserializes and returns JSON data.

Definition at line 56 of file SerDes.py.

◆ deserializeProtobuf()

compilerinterface.SerDes.SerDes.deserializeProtobuf ( self,
datastream )

Definition at line 73 of file SerDes.py.

◆ getOutputBuffer()

compilerinterface.SerDes.SerDes.getOutputBuffer ( self)

Returns value in buffer and empties it.

Returns
Data from output buffer

Definition at line 112 of file SerDes.py.

◆ serializeBytes()

compilerinterface.SerDes.SerDes.serializeBytes ( self,
data )

Serializes data to bitstream.

Definition at line 87 of file SerDes.py.

◆ serializeData()

compilerinterface.SerDes.SerDes.serializeData ( self,
data )

Serializes data and places it in a buffer.

Definition at line 77 of file SerDes.py.

◆ serializeJson()

compilerinterface.SerDes.SerDes.serializeJson ( self,
data )

Serializes data to JSON.

Definition at line 81 of file SerDes.py.

◆ serializeProtobuf()

compilerinterface.SerDes.SerDes.serializeProtobuf ( self,
data )

Definition at line 107 of file SerDes.py.

Member Data Documentation

◆ buffer

compilerinterface.SerDes.SerDes.buffer

Definition at line 34 of file SerDes.py.

◆ data_format

compilerinterface.SerDes.SerDes.data_format

Definition at line 35 of file SerDes.py.

◆ deserializeBytes

compilerinterface.SerDes.SerDes.deserializeBytes

Definition at line 45 of file SerDes.py.

◆ deserializeJson

compilerinterface.SerDes.SerDes.deserializeJson

Definition at line 44 of file SerDes.py.

◆ deserializeProtobuf

compilerinterface.SerDes.SerDes.deserializeProtobuf

Definition at line 46 of file SerDes.py.

◆ desMap

compilerinterface.SerDes.SerDes.desMap

Definition at line 43 of file SerDes.py.

◆ read_stream_iter

compilerinterface.SerDes.SerDes.read_stream_iter

Definition at line 36 of file SerDes.py.

◆ serializeBytes

compilerinterface.SerDes.SerDes.serializeBytes

Definition at line 40 of file SerDes.py.

◆ serializeJson

compilerinterface.SerDes.SerDes.serializeJson

Definition at line 39 of file SerDes.py.

◆ serializeProtobuf

compilerinterface.SerDes.SerDes.serializeProtobuf

Definition at line 41 of file SerDes.py.

◆ serMap

compilerinterface.SerDes.SerDes.serMap

Definition at line 38 of file SerDes.py.


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