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

BitstreamSerDes - Bitstream Serialization/Deserialization which sends header information followed by the raw data. More...

#include <bitstreamSerDes.h>

Inheritance diagram for MLBridge::BitstreamSerDes:
Inheritance graph
[legend]
Collaboration diagram for MLBridge::BitstreamSerDes:
Collaboration graph
[legend]

Public Member Functions

 BitstreamSerDes ()
 
void * getSerializedData () override
 
void cleanDataStructures () override
 
- Public Member Functions inherited from MLBridge::BaseSerDes
SerDesKind getKind () const
 
virtual void setFeature (const std::string &name, const google::protobuf::Message *value)
 
virtual void setFeature (const std::string &name, const std::vector< google::protobuf::Message * > &value)
 
virtual void setRequest (void *Request)
 
virtual void setResponse (void *Response)
 
size_t getMessageLength ()
 
virtual void * getRequest ()
 
virtual void * getResponse ()
 

Private Member Functions

void * deserializeUntyped (void *) override
 

Private Attributes

std::vector< TensorSpectensorSpecs
 
std::vector< const void * > rawData
 
std::string Buffer
 

Additional Inherited Members

- Protected Member Functions inherited from MLBridge::BaseSerDes
 BaseSerDes (SerDesKind Type)
 
- Protected Attributes inherited from MLBridge::BaseSerDes
const SerDesKind Type
 
void * RequestVoid
 
void * ResponseVoid
 
size_t MessageLength
 

Detailed Description

BitstreamSerDes - Bitstream Serialization/Deserialization which sends header information followed by the raw data.

Definition at line 29 of file bitstreamSerDes.h.

Constructor & Destructor Documentation

◆ BitstreamSerDes()

MLBridge::BitstreamSerDes::BitstreamSerDes ( )
inline

Definition at line 31 of file bitstreamSerDes.h.

Member Function Documentation

◆ cleanDataStructures()

void MLBridge::BitstreamSerDes::cleanDataStructures ( )
inlineoverridevirtual

Implements MLBridge::BaseSerDes.

Definition at line 50 of file bitstreamSerDes.h.

◆ deserializeUntyped()

void * MLBridge::BitstreamSerDes::deserializeUntyped ( void * data)
overrideprivatevirtual

Implements MLBridge::BaseSerDes.

Definition at line 144 of file bitstreamSerDes.cpp.

◆ getSerializedData()

void * MLBridge::BitstreamSerDes::getSerializedData ( )
overridevirtual

Implements MLBridge::BaseSerDes.

Definition at line 119 of file bitstreamSerDes.cpp.

Member Data Documentation

◆ Buffer

std::string MLBridge::BitstreamSerDes::Buffer
private

Definition at line 74 of file bitstreamSerDes.h.

◆ rawData

std::vector<const void *> MLBridge::BitstreamSerDes::rawData
private

Definition at line 73 of file bitstreamSerDes.h.

◆ tensorSpecs

std::vector<TensorSpec> MLBridge::BitstreamSerDes::tensorSpecs
private

Definition at line 72 of file bitstreamSerDes.h.


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