Converts an TensorShape into Prototxt representation
| 30 | |
| 31 | /// Converts an TensorShape into Prototxt representation |
| 32 | std::string ConvertTensorShapeToString(const armnn::TensorShape& shape) |
| 33 | { |
| 34 | std::stringstream ss; |
| 35 | for (unsigned int i = 0 ; i < shape.GetNumDimensions() ; i++) |
| 36 | { |
| 37 | ss << "dim {\n"; |
| 38 | ss << "size: " << std::to_string(shape[i]) << "\n"; |
| 39 | ss << "}\n"; |
| 40 | } |
| 41 | return ss.str(); |
| 42 | |
| 43 | } |
| 44 | } // namespace armnnUtils |
no test coverage detected