MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
bitstreamSerDes.h File Reference

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

#include "SerDes/TensorSpec.h"
#include "SerDes/baseSerDes.h"
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for bitstreamSerDes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

namespace  MLBridge
 

Macros

#define TEMPORARY_STORAGE_INIT(TYPE, NAME)
 
#define SET_FEATURE(TYPE, _)
 
#define TEMPORARY_STORAGE_CLEAN(TYPE, NAME)
 
#define TEMPORARY_STORAGE_DEF(TYPE, NAME)
 

Detailed Description

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

Definition in file bitstreamSerDes.h.

Macro Definition Documentation

◆ SET_FEATURE

#define SET_FEATURE ( TYPE,
_ )
Value:
void setFeature(const std::string &, const TYPE) override; \
void setFeature(const std::string &, const std::vector<TYPE> &) override;

Definition at line 42 of file bitstreamSerDes.h.

◆ TEMPORARY_STORAGE_CLEAN

#define TEMPORARY_STORAGE_CLEAN ( TYPE,
NAME )
Value:
for (auto &it : features##NAME) { \
delete it.second; \
} \
features##NAME.clear(); \
features##NAME = {}; \
for (auto &it : featuresVector##NAME) { \
delete it.second; \
} \
featuresVector##NAME.clear(); \
featuresVector##NAME = {};

◆ TEMPORARY_STORAGE_DEF

#define TEMPORARY_STORAGE_DEF ( TYPE,
NAME )
Value:
std::map<std::string, TYPE *> features##NAME; \
std::map<std::string, std::vector<TYPE> *> featuresVector##NAME;

Definition at line 76 of file bitstreamSerDes.h.

◆ TEMPORARY_STORAGE_INIT

#define TEMPORARY_STORAGE_INIT ( TYPE,
NAME )
Value:
features##NAME = {}; \
featuresVector##NAME = {};