MCPcopy Create free account
hub / github.com/Xilinx/CHaiDNN / TensorDimToString

Function TensorDimToString

software/xtract/xi_funcs.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100// Dimension <A, B, C, D> --> String AxBxCxD
101template<typename T>
102string TensorDimToString (const vector<T>& src, const string delimiter)
103{
104 string tmp = "";
105 string delim = "";
106 for(int i=0; i<src.size(); i++)
107 {
108 tmp += to_string(src.at(i));
109 delim = (i==src.size()-1) ? "" : delimiter;
110 tmp += delim;
111 }
112 return tmp;
113}
114template
115string TensorDimToString<int>(const vector<int>& src, const string delimiter);
116template

Callers 15

strMethod · 0.85
computeOutputDimMethod · 0.85
strMethod · 0.85
strMethod · 0.85
strMethod · 0.85
computeOutputDimMethod · 0.85
strMethod · 0.85
strMethod · 0.85
extractFCTrainedDataFunction · 0.85

Calls 3

to_stringFunction · 0.85
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected