| 229 | }; |
| 230 | |
| 231 | std::string shape::to_sizes_string(const std::vector<shape>& shapes) |
| 232 | { |
| 233 | std::vector<std::string> sizes; |
| 234 | std::transform(shapes.begin(), shapes.end(), std::back_inserter(sizes), [&](const shape& s) { |
| 235 | std::string r = to_string_range(s.lens(), "x"); |
| 236 | if(not s.standard()) |
| 237 | r += ":" + to_string_range(s.strides(), "x"); |
| 238 | return r; |
| 239 | }); |
| 240 | return join_strings(sizes, ", "); |
| 241 | } |
| 242 | |
| 243 | const std::vector<shape::type_t>& shape::types() |
| 244 | { |
nothing calls this directly
no test coverage detected