| 180 | } |
| 181 | |
| 182 | std::string TupleShapeToString(TupleShape shape) { |
| 183 | std::ostringstream out; |
| 184 | if (shape.elements.size() == 1) { |
| 185 | return ArrayShapeToString(shape.elements[0]); |
| 186 | } |
| 187 | out << "("; |
| 188 | for (int idx = 0; idx < shape.elements.size(); idx++) { |
| 189 | out << ArrayShapeToString(shape.elements[idx]); |
| 190 | if (idx != shape.elements.size() - 1) { |
| 191 | out << ", "; |
| 192 | } |
| 193 | } |
| 194 | out << ")"; |
| 195 | return out.str(); |
| 196 | } |
| 197 | |
| 198 | // Information about the buffer assignment. |
| 199 | struct BufferAssignment { |
no test coverage detected