DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
DebugUtils::Translate Namespace Reference

Functions

template<typename T , int NL, int M, int N>
std::vector< std::vector
< std::vector< float > > > 
translate_3d (hls::vector< T, NL > scores[M][N])
 Translate a data structure of the shape hls::vector<T, NL> scores[M][N] to 3d nested float stl vector. More...
 
template<typename T , int NL, int N>
std::vector< std::vector< float > > translate_2d (hls::vector< T, NL > scores[N])
 Translate a data structure of the shape hls::vector<T, NL> scores[N] to 2d nested float stl vector. More...
 
template<typename T , int M, int N>
std::vector< std::vector< float > > translate_2d (T scores[M][N])
 
template<typename T , int NL>
std::vector< float > translate_1d (hls::vector< T, NL > scores)
 Translate a data structure of the shape hls::vector<T, NL> scores[N] to 1d nested float stl vector. More...
 
template<typename T , int N>
std::vector< float > translate_1d (T scores[N])
 
void print_3d (const char *name, std::vector< std::vector< std::vector< float >>> scores)
 
void print_2d (const char *name, std::vector< std::vector< float >> scores)
 
void print_1d (const char *name, std::vector< float > scores)
 

Function Documentation

void DebugUtils::Translate::print_1d ( const char *  name,
std::vector< float >  scores 
)
void DebugUtils::Translate::print_2d ( const char *  name,
std::vector< std::vector< float >>  scores 
)
void DebugUtils::Translate::print_3d ( const char *  name,
std::vector< std::vector< std::vector< float >>>  scores 
)
template<typename T , int NL>
std::vector<float> DebugUtils::Translate::translate_1d ( hls::vector< T, NL >  scores)

Translate a data structure of the shape hls::vector<T, NL> scores[N] to 1d nested float stl vector.

Template Parameters
T
NL
Parameters
scores
Returns
std::vector<float>
template<typename T , int N>
std::vector<float> DebugUtils::Translate::translate_1d ( scores[N])
template<typename T , int NL, int N>
std::vector<std::vector<float> > DebugUtils::Translate::translate_2d ( hls::vector< T, NL >  scores[N])

Translate a data structure of the shape hls::vector<T, NL> scores[N] to 2d nested float stl vector.

Template Parameters
T
NL
N
Parameters
scores
Returns
std::vector<std::vector<float>>
template<typename T , int M, int N>
std::vector<std::vector<float> > DebugUtils::Translate::translate_2d ( scores[M][N])
template<typename T , int NL, int M, int N>
std::vector<std::vector<std::vector<float> > > DebugUtils::Translate::translate_3d ( hls::vector< T, NL >  scores[M][N])

Translate a data structure of the shape hls::vector<T, NL> scores[M][N] to 3d nested float stl vector.

Template Parameters
T
NL
M
N
Parameters
scores
Returns
std::vector<std::vector<std::vector<float>>>