| 226 | } |
| 227 | |
| 228 | std::vector<std::string> splitNames(const int size, const std::string names) { |
| 229 | std::vector<std::string> split(size); |
| 230 | std::string rest = names; |
| 231 | for (int i = 0; i < size; ++i) { |
| 232 | auto position = rest.find(","); |
| 233 | split[i] = rest.substr(0, position); |
| 234 | rest = rest.substr(position + 1, rest.size()); |
| 235 | } |
| 236 | return split; |
| 237 | } |
| 238 | |
| 239 | std::vector<std::vector<int>> splitDims(const int size, const std::string string) { |
| 240 | std::vector<std::vector<int>> dims(size); |