DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
debug.h File Reference
#include "dp_hls_common.h"
#include <list>
#include <array>
#include <string>
#include <map>
#include <fstream>
#include <unordered_map>
#include <hls_vector.h>
#include "utils.h"
#include <vector>
#include <cstdarg>
#include <set>

Go to the source code of this file.

Classes

class  Container
 
struct  Container::score_info
 

Namespaces

 DebugUtils
 
 DebugUtils::Translate
 

Functions

template<typename T1 , typename T2 , int LEN>
void DebugUtils::translate (T1(&hls_arr)[LEN], T2(&std_arr)[LEN])
 
template<typename T1 , typename T2 , int M, int N>
void DebugUtils::translate (T1(&hls_mat)[M][N], T2(&std_mat)[M][N])
 
template<typename T1 , typename T2 , int M, int N, int K>
void DebugUtils::translate_multilayer (T1(&hls_mat)[M][N], T2(&std_mat)[K][M][N])
 
std::vector< float > DebugUtils::translate_vec (hls::vector< type_t, N_LAYERS >(&arr))
 
std::vector< std::vector< float > > DebugUtils::translate_scores (hls::vector< type_t, N_LAYERS >(&arr)[PE_NUM])
 
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. More...
 
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. More...
 
template<typename T , int M, int N>
std::vector< std::vector< float > > DebugUtils::Translate::translate_2d (T scores[M][N])
 
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. More...
 
template<typename T , int N>
std::vector< float > DebugUtils::Translate::translate_1d (T scores[N])
 
void DebugUtils::Translate::print_3d (const char *name, std::vector< std::vector< std::vector< float >>> scores)
 
void DebugUtils::Translate::print_2d (const char *name, std::vector< std::vector< float >> scores)
 
void DebugUtils::Translate::print_1d (const char *name, std::vector< float > scores)