13 switch (comparisonOperation)
16 return armnnSerializer::ComparisonOperation::ComparisonOperation_Equal;
18 return armnnSerializer::ComparisonOperation::ComparisonOperation_Greater;
20 return armnnSerializer::ComparisonOperation::ComparisonOperation_GreaterOrEqual;
22 return armnnSerializer::ComparisonOperation::ComparisonOperation_Less;
24 return armnnSerializer::ComparisonOperation::ComparisonOperation_LessOrEqual;
27 return armnnSerializer::ComparisonOperation::ComparisonOperation_NotEqual;
34 switch (logicalBinaryOperation)
37 return armnnSerializer::LogicalBinaryOperation::LogicalBinaryOperation_LogicalAnd;
39 return armnnSerializer::LogicalBinaryOperation::LogicalBinaryOperation_LogicalOr;
51 return armnnSerializer::ConstTensorData::ConstTensorData_IntData;
54 return armnnSerializer::ConstTensorData::ConstTensorData_ShortData;
59 return armnnSerializer::ConstTensorData::ConstTensorData_ByteData;
61 return armnnSerializer::ConstTensorData::ConstTensorData_LongData;
63 return armnnSerializer::ConstTensorData::ConstTensorData_NONE;
72 return armnnSerializer::DataType::DataType_Float32;
74 return armnnSerializer::DataType::DataType_Float16;
76 return armnnSerializer::DataType::DataType_Signed32;
78 return armnnSerializer::DataType::DataType_Signed64;
80 return armnnSerializer::DataType::DataType_QSymmS16;
82 return armnnSerializer::DataType::DataType_QAsymmS8;
84 return armnnSerializer::DataType::DataType_QAsymmU8;
86 return armnnSerializer::DataType::DataType_QSymmS8;
88 return armnnSerializer::DataType::DataType_Boolean;
90 return armnnSerializer::DataType::DataType_Float16;
99 return armnnSerializer::DataLayout::DataLayout_NHWC;
101 return armnnSerializer::DataLayout::DataLayout_NDHWC;
103 return armnnSerializer::DataLayout::DataLayout_NCDHW;
106 return armnnSerializer::DataLayout::DataLayout_NCHW;
112 switch (binaryOperation)
115 return armnnSerializer::BinaryOperation::BinaryOperation_Add;
117 return armnnSerializer::BinaryOperation::BinaryOperation_Div;
119 return armnnSerializer::BinaryOperation::BinaryOperation_Maximum;
121 return armnnSerializer::BinaryOperation::BinaryOperation_Minimum;
123 return armnnSerializer::BinaryOperation::BinaryOperation_Mul;
125 return armnnSerializer::BinaryOperation::BinaryOperation_Sub;
127 return armnnSerializer::BinaryOperation::BinaryOperation_SqDiff;
129 return armnnSerializer::BinaryOperation::BinaryOperation_Power;
137 switch (unaryOperation)
140 return armnnSerializer::UnaryOperation::UnaryOperation_Abs;
142 return armnnSerializer::UnaryOperation::UnaryOperation_Ceil;
144 return armnnSerializer::UnaryOperation::UnaryOperation_Rsqrt;
146 return armnnSerializer::UnaryOperation::UnaryOperation_Sqrt;
148 return armnnSerializer::UnaryOperation::UnaryOperation_Exp;
150 return armnnSerializer::UnaryOperation::UnaryOperation_Neg;
152 return armnnSerializer::UnaryOperation::UnaryOperation_LogicalNot;
154 return armnnSerializer::UnaryOperation::UnaryOperation_Log;
156 return armnnSerializer::UnaryOperation::UnaryOperation_Sin;
164 switch (poolingAlgorithm)
167 return armnnSerializer::PoolingAlgorithm::PoolingAlgorithm_Average;
169 return armnnSerializer::PoolingAlgorithm::PoolingAlgorithm_L2;
172 return armnnSerializer::PoolingAlgorithm::PoolingAlgorithm_Max;
178 switch (outputShapeRounding)
181 return armnnSerializer::OutputShapeRounding::OutputShapeRounding_Ceiling;
184 return armnnSerializer::OutputShapeRounding::OutputShapeRounding_Floor;
190 switch (paddingMethod)
193 return armnnSerializer::PaddingMethod::PaddingMethod_IgnoreValue;
196 return armnnSerializer::PaddingMethod::PaddingMethod_Exclude;
205 return armnnSerializer::PaddingMode::PaddingMode_Reflect;
207 return armnnSerializer::PaddingMode::PaddingMode_Symmetric;
209 return armnnSerializer::PaddingMode::PaddingMode_Constant;
216 switch (normalizationAlgorithmChannel)
219 return armnnSerializer::NormalizationAlgorithmChannel::NormalizationAlgorithmChannel_Across;
221 return armnnSerializer::NormalizationAlgorithmChannel::NormalizationAlgorithmChannel_Within;
223 return armnnSerializer::NormalizationAlgorithmChannel::NormalizationAlgorithmChannel_Across;
230 switch (normalizationAlgorithmMethod)
233 return armnnSerializer::NormalizationAlgorithmMethod::NormalizationAlgorithmMethod_LocalBrightness;
235 return armnnSerializer::NormalizationAlgorithmMethod::NormalizationAlgorithmMethod_LocalContrast;
237 return armnnSerializer::NormalizationAlgorithmMethod::NormalizationAlgorithmMethod_LocalBrightness;
246 return armnnSerializer::ResizeMethod_NearestNeighbor;
248 return armnnSerializer::ResizeMethod_Bilinear;
250 return armnnSerializer::ResizeMethod_NearestNeighbor;
256 switch (reduceOperation)
259 return armnnSerializer::ReduceOperation::ReduceOperation_Sum;
261 return armnnSerializer::ReduceOperation::ReduceOperation_Max;
263 return armnnSerializer::ReduceOperation::ReduceOperation_Mean;
265 return armnnSerializer::ReduceOperation::ReduceOperation_Min;
267 return armnnSerializer::ReduceOperation::ReduceOperation_Prod;
269 return armnnSerializer::ReduceOperation::ReduceOperation_Sum;