| 301 | } |
| 302 | |
| 303 | inline std::string tensor_shape_to_string(const std::vector<int64_t>& shape) |
| 304 | { |
| 305 | std::ostringstream sout; |
| 306 | sout << "["; |
| 307 | for (size_t i = 0; i < shape.size(); ++i) |
| 308 | { |
| 309 | if (i != 0) |
| 310 | sout << ","; |
| 311 | sout << shape[i]; |
| 312 | } |
| 313 | sout << "]"; |
| 314 | return sout.str(); |
| 315 | } |
| 316 | |
| 317 | inline size_t element_count(const std::vector<int64_t>& shape) |
| 318 | { |
no test coverage detected