| 264 | } |
| 265 | |
| 266 | std::string array2String(int32_t dim_num, const int64_t *dims) { |
| 267 | std::string res; |
| 268 | res.push_back('['); |
| 269 | for (int i = 0; i < dim_num; i++) { |
| 270 | res.append(std::to_string(dims[i])); |
| 271 | if (i + 1 != dim_num) { |
| 272 | res.push_back(','); |
| 273 | } |
| 274 | } |
| 275 | res.push_back(']'); |
| 276 | return res; |
| 277 | } |
no outgoing calls
no test coverage detected