20 std::string returnString;
21 for (
int i = 0; i < 4; ++i)
24 ss << std::setw(3) << std::setfill(
'0') << std::oct << ((value >> (i * 8)) & 0xFF);
38 ss <<
"size: " << std::to_string(shape[i]) <<
"\n";
unsigned int GetNumDimensions() const
Function that returns the tensor rank.
std::string ConvertTensorShapeToString(const armnn::TensorShape &shape)
Converts an TensorShape into Prototxt representation.
std::string ConvertInt32ToOctalString(int value)
Converts an int value into the Prototxt octal representation.