26 template<
typename Float32Func,
typename Uint8Func,
typename ... Params>
27 bool IsSupportedForDataTypeRef(Optional<std::string&> reasonIfUnsupported,
29 Float32Func floatFuncPtr,
30 Uint8Func uint8FuncPtr,
35 &FalseFunc<Params...>,
38 &FalseFunc<Params...>,
39 &FalseFunc<Params...>,
40 std::forward<Params>(params)...);
48 std::string CreateIncorrectDimensionsErrorMsg(
unsigned int expected,
50 std::string& layerStr,
51 std::string& tensorName)
53 std::string errorMsg =
"Reference " + layerStr +
": Expected " + std::to_string(expected) +
" dimensions but got" +
54 " " + std::to_string(actual) +
" dimensions instead, for the '" + tensorName +
"' tensor.";
62 const std::vector<TensorInfo>& infos,
73 *(PolymorphicDowncast<const ActivationDescriptor*>(&descriptor)),
80 *(PolymorphicDowncast<const ArgMinMaxDescriptor*>(&descriptor)),
86 *(PolymorphicDowncast<const BatchMatMulDescriptor*>(&descriptor)),
95 *(PolymorphicDowncast<const BatchNormalizationDescriptor*>
101 *(PolymorphicDowncast<const BatchToSpaceNdDescriptor*>(&descriptor)),
102 reasonIfUnsupported);
107 *(PolymorphicDowncast<const ComparisonDescriptor*>(&descriptor)),
108 reasonIfUnsupported);
111 std::vector<const TensorInfo*> inputInfos;
112 for (uint32_t i = 0; i < (infos.size() - 1); i++)
114 inputInfos.push_back(&infos[i]);
117 infos[infos.size() - 1],
118 *(PolymorphicDowncast<const OriginsDescriptor*>(&descriptor)),
119 reasonIfUnsupported);
129 if (infos.size() != 4)
132 "TensorInfos should be of format: {input, output, weights, biases}.");
135 auto desc = *(PolymorphicDowncast<const Convolution2dDescriptor*>(&descriptor));
143 reasonIfUnsupported);
152 reasonIfUnsupported);
158 *(PolymorphicDowncast<const DepthToSpaceDescriptor*>(&descriptor)),
159 reasonIfUnsupported);
162 if (infos.size() != 4)
165 "TensorInfos should be of format: {input, output, weights, biases}.");
168 auto desc = *(PolymorphicDowncast<const DepthwiseConvolution2dDescriptor*>(&descriptor));
176 reasonIfUnsupported);
185 reasonIfUnsupported);
194 std::array<DataType, 7> supportedTypes =
204 bool supported =
true;
206 "Reference elementwise unary: input type not supported");
209 "Reference elementwise unary: input type not supported");
212 "Reference elementwise unary: output type not supported");
215 "Reference elementwise unary: input types not matching");
218 "Reference elementwise unary: input and output types not matching");
225 *(PolymorphicDowncast<const ElementwiseUnaryDescriptor*>(&descriptor)),
226 reasonIfUnsupported);
230 *(PolymorphicDowncast<const FillDescriptor*>(&descriptor)),
231 reasonIfUnsupported);
239 *(PolymorphicDowncast<const FullyConnectedDescriptor*>(&descriptor)),
240 reasonIfUnsupported);
245 *(PolymorphicDowncast<const GatherDescriptor*>(&descriptor)),
246 reasonIfUnsupported);
251 reasonIfUnsupported);
257 *(PolymorphicDowncast<const InstanceNormalizationDescriptor*>
259 reasonIfUnsupported);
263 *(PolymorphicDowncast<const L2NormalizationDescriptor*>(&descriptor)),
264 reasonIfUnsupported);
269 *(PolymorphicDowncast<const LogicalBinaryDescriptor*>(&descriptor)),
270 reasonIfUnsupported);
274 *(PolymorphicDowncast<const LogSoftmaxDescriptor*>(&descriptor)),
275 reasonIfUnsupported);
284 *(PolymorphicDowncast<const LstmDescriptor*>(&descriptor)),
285 lstmParamsInfo.
value(),
286 reasonIfUnsupported);
294 *(PolymorphicDowncast<const QLstmDescriptor*>(&descriptor)),
295 lstmParamsInfo.
value(),
296 reasonIfUnsupported);
302 *(PolymorphicDowncast<const MeanDescriptor*>(&descriptor)),
303 reasonIfUnsupported);
311 *(PolymorphicDowncast<const NormalizationDescriptor*>(&descriptor)),
312 reasonIfUnsupported);
318 *(PolymorphicDowncast<const PadDescriptor*>(&descriptor)),
319 reasonIfUnsupported);
323 *(PolymorphicDowncast<const PermuteDescriptor*>(&descriptor)),
324 reasonIfUnsupported);
328 *(PolymorphicDowncast<const Pooling2dDescriptor*>(&descriptor)),
329 reasonIfUnsupported);
337 *(PolymorphicDowncast<const ReshapeDescriptor*>(&descriptor)),
338 reasonIfUnsupported);
342 *(PolymorphicDowncast<const ResizeDescriptor*>(&descriptor)),
343 reasonIfUnsupported);
348 reasonIfUnsupported);
352 *(PolymorphicDowncast<const ReduceDescriptor*>(&descriptor)),
353 reasonIfUnsupported);
357 *(PolymorphicDowncast<const SliceDescriptor*>(&descriptor)),
358 reasonIfUnsupported);
362 *(PolymorphicDowncast<const SoftmaxDescriptor*>(&descriptor)),
363 reasonIfUnsupported);
367 *(PolymorphicDowncast<const SpaceToBatchNdDescriptor*>(&descriptor)),
368 reasonIfUnsupported);
372 *(PolymorphicDowncast<const SpaceToDepthDescriptor*>(&descriptor)),
373 reasonIfUnsupported);
376 std::vector<TensorInfo> outputInfos;
377 for (uint32_t i = 1; i < infos.size(); i++)
379 outputInfos.push_back(infos[i]);
382 {outputInfos.begin(), outputInfos.end()},
383 *(PolymorphicDowncast<const ViewsDescriptor*>(&descriptor)),
384 reasonIfUnsupported);
388 std::vector<const TensorInfo*> inputInfos;
389 for (uint32_t i = 0; i < infos.size() - 1; i++)
391 inputInfos.push_back(&infos[i]);
394 infos[infos.size() - 1],
395 *(PolymorphicDowncast<const StackDescriptor*>(&descriptor)),
396 reasonIfUnsupported);
401 *(PolymorphicDowncast<const StridedSliceDescriptor*>(&descriptor)),
402 reasonIfUnsupported);
408 *(PolymorphicDowncast<const TileDescriptor*>(&descriptor)),
409 reasonIfUnsupported);
413 *(PolymorphicDowncast<const TransposeDescriptor*>(&descriptor)),
414 reasonIfUnsupported);
417 if (infos.size() != 4)
420 "TensorInfos should be of format: {input, output, weights, biases}.");
423 auto desc = *(PolymorphicDowncast<const TransposeConvolution2dDescriptor*>(&descriptor));
431 reasonIfUnsupported);
440 reasonIfUnsupported);
448 *(PolymorphicDowncast<const ChannelShuffleDescriptor*>(&descriptor)),
449 reasonIfUnsupported);
452 if (infos.size() != 4)
455 "TensorInfos should be of format: {input, output, weights, biases}.");
458 auto desc = *(PolymorphicDowncast<const Convolution3dDescriptor*>(&descriptor));
466 reasonIfUnsupported);
475 reasonIfUnsupported);
488 *(PolymorphicDowncast<const DetectionPostProcessDescriptor*>
490 reasonIfUnsupported);
493 *(PolymorphicDowncast<const FakeQuantizationDescriptor*>(&descriptor)),
494 reasonIfUnsupported);
503 if (infos.size() != 6)
506 "should be of format: {input, outputStateIn, cellStateIn, "
507 "hiddenStateOutputVal, cellStateOutputVal, output}");
509 auto desc = *(PolymorphicDowncast<const UnidirectionalSequenceLstmDescriptor*>(&descriptor));
517 lstmParamsInfo.
value(),
518 reasonIfUnsupported);
523 *(PolymorphicDowncast<const Pooling3dDescriptor*>(&descriptor)),
524 reasonIfUnsupported);
539 quantizedLstmInputParamsInfo.
value(),
540 reasonIfUnsupported);
553 bool supported =
true;
556 std::array<DataType,6> supportedTypes = {
565 "Reference activation: input type not supported.");
568 "Reference activation: output type not supported.");
571 "Reference activation: input and output types mismatched.");
574 "Reference activation: input and output shapes are of different rank.");
577 struct ActivationFunctionSupported :
public Rule
609 supported &=
CheckSupportRule(ActivationFunctionSupported(descriptor), reasonIfUnsupported,
610 "Reference activation: function not supported.");
620 bool supported =
true;
622 std::array<DataType,7> supportedTypes = {
632 "Reference addition: input 0 is not a supported type.");
635 "Reference addition: input 1 is not a supported type.");
638 "Reference addition: output is not a supported type.");
641 "Reference addition: input 0 and Input 1 types are mismatched");
644 "Reference addition: input and output types are mismatched");
647 "Reference addition: shapes are not suitable for implicit broadcast.");
658 std::array<DataType, 8> supportedInputTypes =
669 std::array<DataType,2> supportedOutputTypes = {
674 bool supported =
true;
677 "Reference ArgMinMax: input is not a supported type.");
679 "Reference ArgMinMax: output type not supported");
692 std::array<DataType, 6> supportedTypes =
701 bool supported =
true;
704 "Reference batch matrix multiplication: input X is not a supported type");
707 "Reference batch matrix multiplication: input Y is not a supported type");
710 "Reference batch matrix multiplication: output is not a supported type");
713 "Reference batch matrix multiplication: input X and input Y types are mismatched");
716 "Reference batch matrix multiplication: inputs and output types are mismatched");
720 "Reference batch matrix multiplication: input X is not of rank 2 or greater");
724 "Reference batch matrix multiplication: input Y is not of rank 2 or greater");
740 std::array<DataType, 6> supportedTypes =
749 bool supported =
true;
752 "Reference batch normalization: input is not a supported type.");
755 "Reference batch normalization: output is not a supported type.");
758 "Reference batch normalization: input and output types are mismatched");
761 "Reference batch normalization: mean is not a supported type.");
764 "Reference batch normalization: variance is not a supported type.");
767 "Reference batch normalization: beta is not a supported type.");
770 "Reference batch normalization: gamma is not a supported type.");
782 bool supported =
true;
784 std::string batchToSpaceNdLayerStr =
"batchToSpaceNd";
785 std::string inputTensorStr =
"input";
786 std::string outputTensorStr =
"output";
789 std::array<DataType,6> supportedTypes =
799 "Reference BatchToSpaceNd: input type not supported.");
802 "Reference BatchToSpaceNd: output type not supported.");
805 "Reference BatchToSpaceNd: input and output types mismatched.");
814 std::array<DataType, 9> supportedInputTypes =
825 bool supported =
true;
827 "Reference cast: input is not a supported type");
831 "Reference cast: output is not a supported type");
834 "Reference cast: input and output shapes have different number of total elements");
845 bool supported =
true;
848 std::array<DataType, 7> supportedTypes =
859 "Reference ChannelShuffle: input is not a supported type.");
862 "Reference ChannelShuffle: output is not a supported type.");
865 "Reference ChannelShuffle: input and output types are mismatched.");
878 std::array<DataType, 8> supportedInputTypes =
889 bool supported =
true;
891 "Reference comparison: input 0 is not a supported type");
894 "Reference comparison: input 0 and Input 1 types are mismatched");
897 "Reference comparison: output is not of type Boolean");
909 bool supported =
true;
910 std::array<DataType,7> supportedTypes =
921 "Reference concatenation: output type not supported");
926 "Reference concatenation: input type not supported");
929 "Reference concatenation: input and output types mismatched.");
938 std::array<DataType,8> supportedTypes =
950 "Reference constant: output is not a supported type.");
960 &FalseInputFuncF32<>,
966 &FalseOutputFuncF16<>,
979 &FalseInputFuncF16<>,
987 &FalseOutputFuncF32<>,
1000 bool supported =
true;
1003 std::array<DataType,7> supportedTypes =
1014 "Reference Convolution2d: input is not a supported type.");
1017 "Reference Convolution2d: output is not a supported type.");
1020 "Reference Convolution2d: input and output types mismatched.");
1026 std::array<DataType, 3> supportedWeightTypes =
1034 "Reference Convolution2d: weights type not supported for quantized input.");
1039 "Reference Convolution2d: weights is not a supported type.");
1042 "Reference Convolution2d: input and weights types mismatched.");
1047 std::array<DataType,4> biasesSupportedTypes =
1055 "Reference Convolution2d: biases is not a supported type.");
1069 bool supported =
true;
1072 std::array<DataType,7> supportedTypes =
1083 "Reference Convolution3d: input is not a supported type.");
1086 "Reference Convolution3d: output is not a supported type.");
1089 "Reference Convolution3d: input and output types mismatched.");
1094 std::array<DataType, 3> supportedWeightTypes =
1102 "Reference Convolution3d: weights type not supported for quantized input.");
1107 "Reference Convolution3d: weights is not a supported type.");
1110 "Reference Convolution3d: input and weights types mismatched.");
1115 std::array<DataType,4> biasesSupportedTypes =
1123 "Reference Convolution3d: biases is not a supported type.");
1134 bool supported =
true;
1136 std::array<DataType, 8> supportedTypes =
1149 "Reference for Debug layer: input type not supported");
1152 "Reference for Debug layer: output type not supported");
1155 "Reference for Debug layer: input and output types are mismatched");
1166 bool supported =
true;
1168 std::array<DataType,6> supportedTypes =
1178 "Reference DepthToSpace: input type not supported");
1181 "Reference DepthToSpace: output type not supported");
1184 "Reference DepthToSpace: input and output types are mismatched");
1197 bool supported =
true;
1200 std::array<DataType,7> supportedTypes =
1211 "Reference DepthwiseConvolution2d: input is not a supported type.");
1214 "Reference DepthwiseConvolution2d: output is not a supported type.");
1217 "Reference DepthwiseConvolution2d: input and output types mismatched.");
1222 std::array<DataType, 3> supportedWeightTypes =
1230 "Reference DepthwiseConvolution2d: weights type not supported for "
1231 "quantized input.");
1236 "Reference DepthwiseConvolution2d: weights is not a supported type.");
1239 "Reference DepthwiseConvolution2d: input and weights types mismatched.");
1244 std::array<DataType,4> biasesSupportedTypes =
1251 "Reference DepthwiseConvolution2d: biases is not a supported type.");
1262 bool supported =
true;
1264 std::array<DataType,5> supportedInputTypes = {
1273 "Reference for Dequantize layer: input type not supported.");
1276 "Reference for Dequantize layer: per-axis quantized input not supported.");
1278 std::array<DataType,3> supportedOutputTypes = {
1284 "Reference for Dequantize layer: output type not supported.");
1287 "Reference for Dequantize layer: input/output shapes have different num total "
1303 IgnoreUnused(anchors, detectionBoxes, detectionClasses, detectionScores, numDetections, descriptor);
1305 bool supported =
true;
1307 std::array<DataType,6> supportedInputTypes =
1317 "Reference DetectionPostProcess: input 0 is not a supported type.");
1320 "Reference DetectionPostProcess: input 1 is not a supported type.");
1340 bool supported =
true;
1342 std::array<DataType,7> supportedTypes = {
1352 "Reference division: input 0 is not a supported type.");
1355 "Reference division: input 1 is not a supported type.");
1358 "Reference division: output is not a supported type.");
1361 "Reference division: input 0 and Input 1 types are mismatched");
1364 "Reference division: input and output types are mismatched");
1367 "Reference division: shapes are not suitable for implicit broadcast.");
1379 std::array<DataType, 7> supportedTypes =
1389 std::array<DataType, 1> logicalSupportedTypes =
1394 bool supported =
true;
1399 "Reference elementwise unary: input type not supported");
1402 "Reference elementwise unary: output type not supported");
1407 "Reference elementwise unary: input type not supported");
1410 "Reference elementwise unary: output type not supported");
1414 "Reference elementwise unary: input and output types not matching");
1417 "Reference elementwise unary: input and output shapes"
1418 "have different number of total elements");
1428 bool supported =
true;
1430 std::array<DataType,1> supportedTypes =
1436 "Reference fake quantization: input type not supported.");
1449 bool supported =
true;
1451 std::array<DataType,3> supportedTypes =
1459 "Reference Fill: input type not supported.");
1462 "Reference Fill: output type not supported.");
1471 bool supported =
true;
1473 std::array<DataType,3> supportedTypes =
1480 "Reference Floor: input type not supported.");
1483 "Reference Floor: output type not supported.");
1495 bool supported =
true;
1498 std::array<DataType,6> supportedTypes =
1508 "Reference Fully Connected: input type not supported.");
1511 "Reference Fully Connected: output type not supported.");
1514 "Reference Fully Connected: weights type not supported.");
1517 "Reference Fully Connected: input and output types mismatched.");
1520 "Reference Fully Connected: weights is not a supported type.");
1523 "Reference Fully Connected: input and weights types mismatched.");
1528 std::array<DataType, 5>
1529 supportedBiasTypes =
1538 "Reference Fully Connected: bias type not supported.");
1541 "Reference Fully Connected: bias and weight types mismatch.");
1544 "Reference Fully Connected: bias type inferred from weights is incompatible.");
1547 "Reference Fully Connected: bias must have 1 dimension.");
1559 bool supported =
true;
1560 std::array<DataType,7> supportedTypes =
1571 "Reference GatherNd: input type not supported");
1574 "Reference GatherNd: output type not supported");
1577 "Reference GatherNd: indices (input1) type not supported");
1580 "Reference GatherNd: input and output types not matching");
1591 bool supported =
true;
1592 std::array<DataType,7> supportedTypes =
1604 "Reference Gather: input type not supported");
1607 "Reference Gather: output type not supported");
1610 "Reference Gather: indices (input1) type not supported");
1613 "Reference Gather: input and output types not matching");
1631 std::array<DataType, 3> supportedTypes =
1637 bool supported =
true;
1640 "Reference Instance Normalization: input type not supported.");
1643 "Reference Instance Normalization: output type not supported.");
1646 "Reference Instance Normalization: input and output types mismatched.");
1649 "Reference Instance Normalization: input and output shapes have different "
1650 "num total elements.");
1662 std::array<DataType, 6> supportedTypes =
1671 bool supported =
true;
1674 "Reference L2normalization: input type not supported.");
1677 "Reference L2normalization: output type not supported.");
1680 "Reference L2normalization: input and output types mismatched.");
1683 "Reference L2normalization: input and output shapes have different "
1684 "num total elements.");
1697 std::array<DataType, 1> supportedTypes =
1702 bool supported =
true;
1704 "Reference LogicalBinary: input 0 type not supported");
1706 "Reference LogicalBinary: input 1 type not supported");
1709 "Reference LogicalBinary: input and output types do not match");
1721 std::array<DataType, 3> supportedTypes =
1727 bool supported =
true;
1729 "Reference LogSoftmax: input type not supported");
1732 "Reference LogSoftmax: output type not supported");
1735 "Reference LogSoftmax: input and output types do not match");
1754 bool supported =
true;
1756 std::array<DataType,3> supportedTypes = {
1763 "Reference Lstm: input is not a supported type.");
1765 "Reference Lstm: input and outputStateIn types are mismatched");
1767 "Reference Lstm: input and cellStateIn types are mismatched");
1769 "Reference Lstm: input and scratchBuffer types are mismatched");
1771 "Reference Lstm: input and outputStateOut types are mismatched");
1773 "Reference Lstm: input and cellStateOut types are mismatched");
1776 "Reference Lstm: input and output types are mismatched");
1779 "Reference Lstm: input and InputToForgetWeights types are mismatched");
1781 "Reference Lstm: input and InputToCellWeights types are mismatched");
1783 "Reference Lstm: input and InputToOutputWeights types are mismatched");
1785 "Reference Lstm: input and RecurrentToForgetWeights types are mismatched");
1787 "Reference Lstm: input and RecurrentToCellWeights types are mismatched");
1789 "Reference Lstm: input and RecurrentToOutputWeights types are mismatched");
1791 "Reference Lstm: input and ForgetGateBias types are mismatched");
1793 "Reference Lstm: input and CellBias types are mismatched");
1795 "Reference Lstm: input and OutputGateBias types are mismatched");
1799 "Reference Lstm: input and InputToInputWeights types are mismatched");
1801 reasonIfUnsupported,
1802 "Reference Lstm: input and RecurrentToInputWeights types are mismatched");
1804 "Reference Lstm: input and InputGateBias types are mismatched");
1808 reasonIfUnsupported,
1809 "Reference Lstm: input and CellToInputWeights types are mismatched");
1815 "Reference Lstm: input and CellToForgetWeights types are mismatched");
1817 "Reference Lstm: input and CellToOutputWeights types are mismatched");
1822 "Reference Lstm: input and mProjectionWeights types are mismatched");
1826 "Reference Lstm: input and ProjectionBias types are mismatched");
1834 reasonIfUnsupported,
1835 "Reference Lstm: input and InputLayerNormWeights types are mismatched");
1838 reasonIfUnsupported,
1839 "Reference Lstm: input and ForgetLayerNormWeights types are mismatched");
1841 reasonIfUnsupported,
1842 "Reference Lstm: input and CellLayerNormWeights types are mismatched");
1844 reasonIfUnsupported,
1845 "Reference Lstm: input and OutputLayerNormWeights types are mismatched");
1856 bool supported =
true;
1858 std::array<DataType,7> supportedTypes = {
1868 "Reference maximum: input 0 is not a supported type.");
1871 "Reference maximum: input 1 is not a supported type.");
1874 "Reference maximum: output is not a supported type.");
1877 "Reference maximum: input 0 and Input 1 types are mismatched");
1880 "Reference maximum: input and output types are mismatched");
1883 "Reference maximum: shapes are not suitable for implicit broadcast.");
1893 bool supported =
true;
1894 std::string meanLayerStr =
"Mean";
1895 std::string outputTensorStr =
"output";
1897 std::array<DataType,6> supportedTypes =
1907 "Reference Mean: input type not supported.");
1910 "Reference Mean: input and output types are mismatched");
1915 reasonIfUnsupported,
1918 meanLayerStr, outputTensorStr).data());
1920 else if (descriptor.
m_Axis.empty())
1923 reasonIfUnsupported,
1925 meanLayerStr, outputTensorStr).data());
1934 reasonIfUnsupported,
1936 meanLayerStr, outputTensorStr).data());
1941 reasonIfUnsupported,
1943 meanLayerStr, outputTensorStr).data());
1954 bool supported =
true;
1956 std::array<DataType,7> supportedTypes =
1968 "Reference MemCopy: input type not supported");
1971 "Reference MemCopy: output type not supported");
1974 "Reference MemCopy: input and output types are mismatched");
1984 bool supported =
true;
1986 std::array<DataType,7> supportedTypes = {
1996 "Reference minimum: input 0 is not a supported type.");
1999 "Reference minimum: input 1 is not a supported type.");
2002 "Reference minimum: output is not a supported type.");
2005 "Reference minimum: input 0 and Input 1 types are mismatched");
2008 "Reference minimum: input and output types are mismatched");
2011 "Reference minimum: shapes are not suitable for implicit broadcast.");
2021 bool supported =
true;
2023 std::array<DataType,7> supportedTypes = {
2033 "Reference multiplication: input 0 is not a supported type.");
2036 "Reference multiplication: input 1 is not a supported type.");
2039 "Reference multiplication: output is not a supported type.");
2042 "Reference multiplication: input 0 and Input 1 types are mismatched");
2045 "Reference multiplication: input and output types are mismatched");
2048 "Reference multiplication: shapes are not suitable for implicit broadcast.");
2061 std::array<DataType, 6> supportedTypes =
2070 bool supported =
true;
2073 "Reference normalization: input type not supported.");
2076 "Reference normalization: output type not supported.");
2079 "Reference normalization: input and output shapes have different "
2080 "num total elements.");
2097 bool supported =
true;
2100 std::array<DataType,6> supportedTypes =
2110 "Reference pad: input is not a supported type.");
2113 "Reference pad: output is not a supported type.");
2116 "Reference pad: input and output types are mismatched.");
2127 bool supported =
true;
2130 std::array<DataType, 6> supportedTypes =
2141 "Reference permute: input is not a supported type.");
2144 "Reference permute: output is not a supported type.");
2147 "Reference permute: input and output types are mismatched.");
2158 bool supported =
true;
2161 std::array<DataType,6> supportedTypes =
2171 "Reference poolind2d: input is not a supported type.");
2174 "Reference poolind2d: output is not a supported type.");
2177 "Reference poolind2d: input and output types are mismatched.");
2188 bool supported =
true;
2191 std::array<DataType,6> supportedTypes =
2201 "Reference poolind3d: input is not a supported type.");
2204 "Reference poolind3d: output is not a supported type.");
2207 "Reference poolind3d: input and output types are mismatched.");
2241 bool supported =
true;
2244 std::array<DataType,7> supportedInputTypes = {
2254 "Reference quantize: input type not supported.");
2257 std::array<DataType,4> supportedOutputTypes = {
2264 "Reference quantize: output type not supported.");
2267 "Reference quantize: input and output shapes have different num total elements.");
2278 std::array<DataType,1> supportedOutputTypes =
2284 "Reference rank: input type not supported.");
2293 bool supported =
true;
2294 std::array<DataType,7> supportedTypes =
2305 "Reference Reduce: input type not supported");
2308 "Reference Reduce: output type not supported");
2311 "Reference Reduce: input and output types not matching");
2324 std::array<DataType,8> supportedOutputTypes =
2337 "Reference reshape: input type not supported.");
2346 bool supported =
true;
2347 std::array<DataType,6> supportedTypes =
2358 "Reference Resize: input type not supported");
2361 "Reference Resize: output type not supported");
2364 "Reference Resize: input and output types not matching");
2374 bool supported =
true;
2376 std::array<DataType,8> supportedTypes =
2389 "Reference ReverseV2: input0 type not supported");
2392 "Reference ReverseV2: output type not supported");
2395 "Reference ReverseV2: input0 and output types not matching");
2397 std::array<DataType,6> input2SupportedTypes =
2403 "Reference ReverseV2: input1 type not supported");
2413 bool supported =
true;
2415 std::array<DataType, 1> supportedTypes =
2421 "Reference Shape: output type not supported");
2432 bool supported =
true;
2434 std::array<DataType, 5> supportedTypes =
2444 "Reference Slice: input type not supported");
2447 "Reference Slice: output type not supported");
2450 "Reference Slice: input and output types are mismatched");
2461 bool supported =
true;
2462 std::array<DataType,7> supportedTypes =
2473 "Reference Softmax: output type not supported");
2476 "Reference Softmax: input type not supported");
2479 "Reference Softmax: input type not supported");
2490 bool supported =
true;
2491 std::array<DataType,6> supportedTypes =
2501 "Reference SpaceToBatchNd: input type not supported");
2504 "Reference SpaceToBatchNd: output type not supported");
2507 "Reference SpaceToBatchNd: input and output types are mismatched");
2519 bool supported =
true;
2521 std::array<DataType,6> supportedTypes =
2531 "Reference SpaceToDepth: input type not supported");
2534 "Reference SpaceToDepth: output type not supported");
2537 "Reference SpaceToDepth: input and output types are mismatched");
2543 const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
2548 bool supported =
true;
2549 std::array<DataType,6> supportedTypes =
2559 "Reference splitter: output type not supported");
2563 "Reference splitter: input type not supported");
2566 "Reference splitter: input and output types mismatched.");
2579 bool supported =
true;
2580 std::array<DataType,7> supportedTypes =
2591 "Reference stack: output type not supported");
2596 "Reference stack: input type not supported");
2599 "Reference stack: input and output types mismatched.");
2611 bool supported =
true;
2613 std::array<DataType,5> supportedTypes =
2622 "Reference StridedSlice: input type not supported");
2625 "Reference StridedSlice: output type not supported");
2628 "Reference StridedSlice: input and output types are mismatched");
2638 bool supported =
true;
2640 std::array<DataType,7> supportedTypes = {
2650 "Reference subtraction: input 0 is not a supported type.");
2653 "Reference subtraction: input 1 is not a supported type.");
2656 "Reference subtraction: output is not a supported type.");
2659 "Reference subtraction: input 0 and Input 1 types are mismatched");
2662 "Reference subtraction: input and output types are mismatched");
2665 "Reference subtraction: shapes are not suitable for implicit broadcast.");
2675 bool supported =
true;
2677 std::array<DataType, 6> supportedTypes
2687 "PReLU: input is not a supported type.");
2690 "PReLU: alpha is not a supported type.");
2693 "PReLU: output is not a supported type.");
2696 "PReLU: input, alpha and output types are mismatched");
2699 "PReLU: shapes are not suitable for implicit broadcast");
2711 bool supported =
true;
2713 std::array<DataType, 7> supportedTypes
2725 "Tile: input type not supported.");
2728 "Tile: output type not supported");
2741 bool supported =
true;
2743 std::array<DataType,7> supportedTypes =
2754 "Reference TransposeConvolution2d: input is not a supported type.");
2757 "Reference TransposeConvolution2d: output is not a supported type.");
2760 "Reference TransposeConvolution2d: input and output types mismatched.");
2766 std::array<DataType, 3> supportedWeightTypes =
2774 "Reference TransposeConvolution2d: weights type not supported for "
2775 "quantized input.");
2780 "Reference TransposeConvolution2d: weights is not a supported type.");
2783 "Reference TransposeConvolution2d: input and weights types mismatched.");
2788 std::array<DataType,4> biasesSupportedTypes =
2795 "Reference TransposeConvolution2d: biases is not a supported type.");
2807 bool supported =
true;
2810 std::array<DataType, 6> supportedTypes =
2821 "Reference transpose: input is not a supported type.");
2824 "Reference transpose: output is not a supported type.");
2827 "Reference transpose: input and output types are mismatched.");
2849 bool supported =
true;
2851 std::array<DataType, 2> supportedTypes =
2857 std::array<DataType, 2> supportedWeightTypes =
2863 std::array<DataType, 3> supportedBiasTypes =
2872 "Reference UnidirectionalSequenceLstm: input is not a supported type.");
2874 "Reference UnidirectionalSequenceLstm: output is not a supported type.");
2878 reasonIfUnsupported,
2879 "Reference UnidirectionalSequenceLstm: InputToForgetWeights "
2880 "is not a supported type.");
2882 reasonIfUnsupported,
2883 "Reference UnidirectionalSequenceLstm: InputToCellWeights is not a supported type.");
2885 reasonIfUnsupported,
2886 "Reference UnidirectionalSequenceLstm: InputToOutputWeights "
2887 "is not a supported type.");
2889 reasonIfUnsupported,
2890 "Reference UnidirectionalSequenceLstm: RecurrentToForgetWeights "
2891 "is not a supported type.");
2893 reasonIfUnsupported,
2894 "Reference UnidirectionalSequenceLstm: RecurrentToCellWeights "
2895 "is not a supported type.");
2897 reasonIfUnsupported,
2898 "Reference UnidirectionalSequenceLstm: RecurrentToOutputWeights "
2899 "is not a supported type.");
2902 "Reference UnidirectionalSequenceLstm: ForgetGateBias is not a supported type.");
2904 "Reference UnidirectionalSequenceLstm: CellBias is not a supported type.");
2906 "Reference UnidirectionalSequenceLstm: OutputGateBias is not a supported type.");
2910 reasonIfUnsupported,
2911 "Reference UnidirectionalSequenceLstm: InputToInputWeights "
2912 "is not a supported type.");
2914 reasonIfUnsupported,
2915 "Reference UnidirectionalSequenceLstm: RecurrentToInputWeights "
2916 "is not a supported type.");
2918 "Reference UnidirectionalSequenceLstm: InputGateBias is not a supported type.");
2922 reasonIfUnsupported,
2923 "Reference UnidirectionalSequenceLstm: CellToInputWeights "
2924 "is not a supported type.");
2930 reasonIfUnsupported,
2931 "Reference UnidirectionalSequenceLstm: CellToForgetWeights "
2932 "is not a supported type.");
2934 reasonIfUnsupported,
2935 "Reference UnidirectionalSequenceLstm: CellToOutputWeights "
2936 "is not a supported type.");
2941 reasonIfUnsupported,
2942 "Reference UnidirectionalSequenceLstm: ProjectionWeights "
2943 "is not a supported type.");
2947 "Reference UnidirectionalSequenceLstm: input and ProjectionBias types "
2956 reasonIfUnsupported,
2957 "Reference UnidirectionalSequenceLstm: InputLayerNormWeights "
2958 "is not a supported type.");
2961 reasonIfUnsupported,
2962 "Reference UnidirectionalSequenceLstm: ForgetLayerNormWeights "
2963 "is not a supported type.");
2965 reasonIfUnsupported,
2966 "Reference UnidirectionalSequenceLstm: CellLayerNormWeights "
2967 "is not a supported type.");
2969 reasonIfUnsupported,
2970 "Reference UnidirectionalSequenceLstm: OutputLayerNormWeights "
2971 "is not a supported type.");