24 #ifndef ARM_COMPUTE_TEST_TYPE_READER_H 25 #define ARM_COMPUTE_TEST_TYPE_READER_H 48 std::transform(value.begin(), value.end(), value.begin(), [](
unsigned char c)
50 return std::toupper(c);
53 if(value ==
"UNDEFINED")
57 else if(value ==
"CONSTANT")
61 else if(value ==
"REPLICATE")
67 throw std::invalid_argument(
"Unsupported value '" + value +
"' for border mode");
BorderMode
Methods available to handle borders.
Copyright (c) 2017-2021 Arm Limited.
Borders are left undefined.
Pixels outside the image are assumed to have the same value as the closest image pixel.
inline ::std::istream & operator>>(::std::istream &stream, DataType &data_type)
Input Stream operator for DataType.