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

Function dimVectorToString

software/xtract/xi_funcs.cpp:134–145  ·  view source on GitHub ↗

A function to join multiple blob shapes to a single string

Source from the content-addressed store, hash-verified

132
133// A function to join multiple blob shapes to a single string
134string dimVectorToString (const vector< vector<int> >& src, const string delimiter)
135{
136 string tmp = "";
137 string delim = "";
138 for(int i=0; i<src.size(); i++)
139 {
140 tmp += TensorDimToString(src.at(i));
141 delim = (i==src.size()-1) ? "" : delimiter;
142 tmp += delim;
143 }
144 return tmp;
145}
146
147// A function return Byte size as human readable size
148// If no unit provided, the function will decide proper unit.

Callers 3

strMethod · 0.85
strMethod · 0.85
strMethod · 0.85

Calls 3

TensorDimToStringFunction · 0.85
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected