A function to join multiple blob shapes to a single string
| 132 | |
| 133 | // A function to join multiple blob shapes to a single string |
| 134 | string 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. |