Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 1 | // |
Teresa Charlin | 5266473 | 2020-06-29 16:27:03 +0100 | [diff] [blame] | 2 | // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Francis Murtagh | cae4568 | 2021-04-26 10:07:49 +0100 | [diff] [blame] | 8 | #include <armnn/backends/ILayerSupport.hpp> |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 9 | |
| 10 | namespace armnn |
| 11 | { |
| 12 | |
| 13 | class LayerSupportBase : public ILayerSupport |
| 14 | { |
| 15 | public: |
Cathal Corbett | 34b429c | 2021-12-24 12:24:40 +0000 | [diff] [blame] | 16 | |
| 17 | bool IsLayerSupported(const LayerType& type, |
| 18 | const std::vector<TensorInfo>& infos, |
| 19 | const BaseDescriptor& descriptor, |
| 20 | const Optional<LstmInputParamsInfo>& lstmParamsInfo = EmptyOptional(), |
| 21 | const Optional<QuantizedLstmInputParamsInfo>& quantizedLstmParamsInfo = EmptyOptional(), |
| 22 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 23 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 24 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 25 | bool IsActivationSupported(const TensorInfo& input, |
| 26 | const TensorInfo& output, |
| 27 | const ActivationDescriptor& descriptor, |
| 28 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 29 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 30 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 31 | bool IsAdditionSupported(const TensorInfo& input0, |
| 32 | const TensorInfo& input1, |
| 33 | const TensorInfo& output, |
| 34 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 35 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 36 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Nikhil Raj | ee391d5 | 2019-09-05 17:50:44 +0100 | [diff] [blame] | 37 | bool IsArgMinMaxSupported(const TensorInfo& input, |
| 38 | const TensorInfo& output, |
| 39 | const ArgMinMaxDescriptor& descriptor, |
| 40 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 41 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 42 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 43 | bool IsBatchNormalizationSupported(const TensorInfo& input, |
| 44 | const TensorInfo& output, |
| 45 | const TensorInfo& mean, |
| 46 | const TensorInfo& var, |
| 47 | const TensorInfo& beta, |
| 48 | const TensorInfo& gamma, |
| 49 | const BatchNormalizationDescriptor& descriptor, |
| 50 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 51 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 52 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 53 | bool IsBatchToSpaceNdSupported(const TensorInfo& input, |
| 54 | const TensorInfo& output, |
| 55 | const BatchToSpaceNdDescriptor& descriptor, |
| 56 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 57 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 58 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
mathad01 | b392e98 | 2021-04-07 12:07:30 +0100 | [diff] [blame] | 59 | bool IsCastSupported(const TensorInfo& input, |
| 60 | const TensorInfo& output, |
| 61 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 62 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 63 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Simon Obute | 51f6777 | 2021-09-03 15:50:13 +0100 | [diff] [blame] | 64 | bool IsChannelShuffleSupported(const TensorInfo& input, |
| 65 | const TensorInfo& output, |
| 66 | const ChannelShuffleDescriptor& descriptor, |
| 67 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 68 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 69 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 70 | bool IsComparisonSupported(const TensorInfo& input0, |
| 71 | const TensorInfo& input1, |
| 72 | const TensorInfo& output, |
| 73 | const ComparisonDescriptor& descriptor, |
| 74 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 75 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 76 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Jim Flynn | 906f946 | 2019-05-10 13:55:21 +0100 | [diff] [blame] | 77 | bool IsConcatSupported(const std::vector<const TensorInfo*> inputs, |
| 78 | const TensorInfo& output, |
| 79 | const OriginsDescriptor& descriptor, |
| 80 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 81 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 82 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 83 | bool IsConstantSupported(const TensorInfo& output, |
| 84 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 85 | |
Narumol Prangnawarat | 7ddbbae | 2020-03-13 10:26:05 +0000 | [diff] [blame] | 86 | bool IsConvertBf16ToFp32Supported(const TensorInfo& input, |
| 87 | const TensorInfo& output, |
| 88 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 89 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 90 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 91 | bool IsConvertFp16ToFp32Supported(const TensorInfo& input, |
| 92 | const TensorInfo& output, |
| 93 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 94 | |
Narumol Prangnawarat | ea54a01 | 2020-03-16 16:36:10 +0000 | [diff] [blame] | 95 | bool IsConvertFp32ToBf16Supported(const TensorInfo& input, |
| 96 | const TensorInfo& output, |
| 97 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 98 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 99 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 3d6898c | 2019-01-15 16:11:44 +0000 | [diff] [blame] | 100 | bool IsConvertFp32ToFp16Supported( |
| 101 | const TensorInfo& input, |
| 102 | const TensorInfo& output, |
| 103 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 104 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 105 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 106 | bool IsConvolution2dSupported(const TensorInfo& input, |
| 107 | const TensorInfo& output, |
| 108 | const Convolution2dDescriptor& descriptor, |
| 109 | const TensorInfo& weights, |
| 110 | const Optional<TensorInfo>& biases, |
| 111 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 112 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 113 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 114 | bool IsConvolution3dSupported(const TensorInfo& input, |
| 115 | const TensorInfo& output, |
| 116 | const Convolution3dDescriptor& descriptor, |
| 117 | const TensorInfo& weights, |
| 118 | const Optional<TensorInfo>& biases, |
| 119 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 120 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 121 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 122 | bool IsDebugSupported(const TensorInfo& input, |
| 123 | const TensorInfo& output, |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 124 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 125 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 126 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Aron Virginas-Tar | dd6247f | 2019-09-19 14:31:17 +0100 | [diff] [blame] | 127 | bool IsDepthToSpaceSupported(const TensorInfo& input, |
| 128 | const TensorInfo& output, |
| 129 | const DepthToSpaceDescriptor& descriptor, |
| 130 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 131 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 132 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 133 | bool IsDepthwiseConvolutionSupported(const TensorInfo& input, |
| 134 | const TensorInfo& output, |
| 135 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 136 | const TensorInfo& weights, |
| 137 | const Optional<TensorInfo>& biases, |
| 138 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 139 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 140 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 141 | bool IsDequantizeSupported(const TensorInfo& input, |
| 142 | const TensorInfo& output, |
| 143 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 144 | |
Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 145 | bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings, |
| 146 | const TensorInfo& scores, |
| 147 | const TensorInfo& anchors, |
| 148 | const TensorInfo& detectionBoxes, |
| 149 | const TensorInfo& detectionClasses, |
| 150 | const TensorInfo& detectionScores, |
| 151 | const TensorInfo& numDetections, |
Narumol Prangnawarat | 94dd5d8 | 2019-01-23 18:06:26 +0000 | [diff] [blame] | 152 | const DetectionPostProcessDescriptor& descriptor, |
| 153 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 154 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 155 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | eac246d | 2019-05-14 09:11:03 +0100 | [diff] [blame] | 156 | bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo& input, |
| 157 | const TensorInfo& output, |
| 158 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 159 | const TensorInfo& weights, |
| 160 | const Optional<TensorInfo>& biases, |
| 161 | Optional<std::string&> reasonIfUnsupported = |
| 162 | EmptyOptional()) const override; |
| 163 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 164 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 165 | bool IsDivisionSupported(const TensorInfo& input0, |
| 166 | const TensorInfo& input1, |
| 167 | const TensorInfo& output, |
| 168 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 169 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 170 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 171 | bool IsElementwiseUnarySupported(const TensorInfo& input, |
| 172 | const TensorInfo& output, |
| 173 | const ElementwiseUnaryDescriptor& descriptor, |
| 174 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 175 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 176 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 177 | bool IsFakeQuantizationSupported(const TensorInfo& input, |
| 178 | const FakeQuantizationDescriptor& descriptor, |
| 179 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 180 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 181 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Ryan OShea | ec6c680 | 2020-06-05 17:17:06 +0100 | [diff] [blame] | 182 | virtual bool IsFillSupported(const TensorInfo& input, |
| 183 | const TensorInfo& output, |
| 184 | const FillDescriptor& descriptor, |
| 185 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 186 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 187 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 188 | bool IsFloorSupported(const TensorInfo& input, |
| 189 | const TensorInfo& output, |
| 190 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 191 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 192 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 193 | bool IsFullyConnectedSupported(const TensorInfo& input, |
| 194 | const TensorInfo& output, |
| 195 | const TensorInfo& weights, |
| 196 | const TensorInfo& biases, |
| 197 | const FullyConnectedDescriptor& descriptor, |
| 198 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 199 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 200 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Teresa Charlin | 5266473 | 2020-06-29 16:27:03 +0100 | [diff] [blame] | 201 | bool IsGatherSupported(const TensorInfo& input0, |
| 202 | const TensorInfo& input1, |
| 203 | const TensorInfo& output, |
| 204 | const GatherDescriptor& descriptor, |
| 205 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 206 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 207 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 208 | bool IsInputSupported(const TensorInfo& input, |
| 209 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 210 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 211 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Kevin May | ce5045a | 2019-10-02 14:07:47 +0100 | [diff] [blame] | 212 | bool IsInstanceNormalizationSupported( |
| 213 | const TensorInfo& input, |
| 214 | const TensorInfo& output, |
| 215 | const InstanceNormalizationDescriptor& descriptor, |
| 216 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 217 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 218 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 219 | bool IsL2NormalizationSupported(const TensorInfo& input, |
| 220 | const TensorInfo& output, |
| 221 | const L2NormalizationDescriptor& descriptor, |
| 222 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 223 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 224 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 225 | bool IsLogicalBinarySupported(const TensorInfo& input0, |
| 226 | const TensorInfo& input1, |
| 227 | const TensorInfo& output, |
| 228 | const LogicalBinaryDescriptor& descriptor, |
| 229 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 230 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 231 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 232 | bool IsLogicalUnarySupported(const TensorInfo& input, |
| 233 | const TensorInfo& output, |
| 234 | const ElementwiseUnaryDescriptor& descriptor, |
| 235 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 236 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 237 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Aron Virginas-Tar | f982dea | 2019-10-11 14:07:53 +0100 | [diff] [blame] | 238 | bool IsLogSoftmaxSupported(const TensorInfo& input, |
| 239 | const TensorInfo& output, |
| 240 | const LogSoftmaxDescriptor& descriptor, |
| 241 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 242 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 243 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 244 | bool IsLstmSupported(const TensorInfo& input, |
| 245 | const TensorInfo& outputStateIn, |
| 246 | const TensorInfo& cellStateIn, |
| 247 | const TensorInfo& scratchBuffer, |
| 248 | const TensorInfo& outputStateOut, |
| 249 | const TensorInfo& cellStateOut, |
| 250 | const TensorInfo& output, |
| 251 | const LstmDescriptor& descriptor, |
Jan Eilers | d01a83c | 2019-07-03 18:20:40 +0100 | [diff] [blame] | 252 | const LstmInputParamsInfo& paramsInfo, |
| 253 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 254 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 255 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 256 | bool IsMaximumSupported(const TensorInfo& input0, |
| 257 | const TensorInfo& input1, |
| 258 | const TensorInfo& output, |
| 259 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 260 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 261 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 262 | bool IsMeanSupported(const TensorInfo& input, |
| 263 | const TensorInfo& output, |
| 264 | const MeanDescriptor& descriptor, |
| 265 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 266 | |
| 267 | bool IsMemCopySupported(const TensorInfo& input, |
| 268 | const TensorInfo& output, |
| 269 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 270 | |
Derek Lamberti | f674aa0 | 2019-08-01 15:56:25 +0100 | [diff] [blame] | 271 | bool IsMemImportSupported(const TensorInfo& input, |
| 272 | const TensorInfo& output, |
| 273 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 274 | |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 275 | bool IsMergeSupported(const TensorInfo& input0, |
| 276 | const TensorInfo& input1, |
| 277 | const TensorInfo& output, |
| 278 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 279 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 280 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 281 | bool IsMinimumSupported(const TensorInfo& input0, |
| 282 | const TensorInfo& input1, |
| 283 | const TensorInfo& output, |
| 284 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 285 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 286 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 287 | bool IsMultiplicationSupported(const TensorInfo& input0, |
| 288 | const TensorInfo& input1, |
| 289 | const TensorInfo& output, |
| 290 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 291 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 292 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 293 | bool IsNormalizationSupported(const TensorInfo& input, |
| 294 | const TensorInfo& output, |
| 295 | const NormalizationDescriptor& descriptor, |
| 296 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 297 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 298 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 299 | bool IsOutputSupported(const TensorInfo& output, |
| 300 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 301 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 302 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 303 | bool IsPadSupported(const TensorInfo& input, |
| 304 | const TensorInfo& output, |
| 305 | const PadDescriptor& descriptor, |
| 306 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 307 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 308 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 309 | bool IsPermuteSupported(const TensorInfo& input, |
| 310 | const TensorInfo& output, |
| 311 | const PermuteDescriptor& descriptor, |
| 312 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 313 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 314 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 315 | bool IsPooling2dSupported(const TensorInfo& input, |
| 316 | const TensorInfo& output, |
| 317 | const Pooling2dDescriptor& descriptor, |
| 318 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 319 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 320 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Tamás Nyíri | 7b885b3 | 2021-10-26 14:47:57 +0100 | [diff] [blame] | 321 | bool IsPooling3dSupported(const TensorInfo& input, |
| 322 | const TensorInfo& output, |
| 323 | const Pooling3dDescriptor& descriptor, |
| 324 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 325 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 326 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 327 | bool IsPreCompiledSupported(const TensorInfo& input, |
| 328 | const PreCompiledDescriptor& descriptor, |
| 329 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 330 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 331 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 0e406ee | 2019-06-12 15:42:18 +0100 | [diff] [blame] | 332 | bool IsPreluSupported(const TensorInfo& input, |
| 333 | const TensorInfo& alpha, |
| 334 | const TensorInfo& output, |
| 335 | Optional<std::string &> reasonIfUnsupported) const override; |
| 336 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 337 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Derek Lamberti | a9cca6a | 2019-03-25 15:41:58 +0000 | [diff] [blame] | 338 | bool IsQuantizeSupported(const TensorInfo& input, |
| 339 | const TensorInfo& output, |
| 340 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 341 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 342 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
James Conroy | 586a9aa | 2020-03-20 08:49:33 +0000 | [diff] [blame] | 343 | bool IsQLstmSupported(const TensorInfo& input, |
| 344 | const TensorInfo& previousOutputIn, |
| 345 | const TensorInfo& previousCellStateIn, |
| 346 | const TensorInfo& outputStateOut, |
| 347 | const TensorInfo& cellStateOut, |
| 348 | const TensorInfo& output, |
| 349 | const QLstmDescriptor& descriptor, |
| 350 | const LstmInputParamsInfo& paramsInfo, |
| 351 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 352 | |
James Conroy | ee18dc8 | 2019-07-17 11:27:46 +0100 | [diff] [blame] | 353 | bool IsQuantizedLstmSupported(const TensorInfo& input, |
| 354 | const TensorInfo& previousCellStateIn, |
| 355 | const TensorInfo& previousOutputIn, |
| 356 | const TensorInfo& cellStateOut, |
| 357 | const TensorInfo& output, |
| 358 | const QuantizedLstmInputParamsInfo& paramsInfo, |
| 359 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 360 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 361 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Finn Williams | 2605b23 | 2020-06-10 15:53:46 +0100 | [diff] [blame] | 362 | bool IsRankSupported(const TensorInfo& input, |
| 363 | const TensorInfo& output, |
| 364 | Optional<std::string&> reasonIfUnsupported) const override; |
| 365 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 366 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 367 | bool IsReduceSupported(const TensorInfo& input, |
| 368 | const TensorInfo& output, |
| 369 | const ReduceDescriptor& descriptor, |
| 370 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 371 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 372 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 373 | bool IsReshapeSupported(const TensorInfo& input, |
Kevin May | a023c40 | 2019-12-12 17:28:05 +0000 | [diff] [blame] | 374 | const TensorInfo& output, |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 375 | const ReshapeDescriptor& descriptor, |
| 376 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 377 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 378 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Teresa Charlin | a9075df | 2019-06-27 15:41:57 +0100 | [diff] [blame] | 379 | bool IsResizeSupported(const TensorInfo& input, |
| 380 | const TensorInfo& output, |
| 381 | const ResizeDescriptor& descriptor, |
| 382 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 383 | |
Keith Davis | 3ae3f97 | 2021-05-21 16:33:48 +0100 | [diff] [blame] | 384 | bool IsShapeSupported(const TensorInfo& input, |
| 385 | const TensorInfo& output, |
| 386 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 387 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 388 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Aron Virginas-Tar | 636ab40 | 2019-09-16 14:27:45 +0100 | [diff] [blame] | 389 | bool IsSliceSupported(const TensorInfo& input, |
| 390 | const TensorInfo& output, |
| 391 | const SliceDescriptor& descriptor, |
| 392 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 393 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 394 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 395 | bool IsSoftmaxSupported(const TensorInfo& input, |
| 396 | const TensorInfo& output, |
| 397 | const SoftmaxDescriptor& descriptor, |
| 398 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 399 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 400 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 401 | bool IsSpaceToBatchNdSupported(const TensorInfo& input, |
| 402 | const TensorInfo& output, |
| 403 | const SpaceToBatchNdDescriptor& descriptor, |
| 404 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 405 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 406 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Aron Virginas-Tar | 972af15 | 2019-06-11 14:14:03 +0100 | [diff] [blame] | 407 | bool IsSpaceToDepthSupported(const TensorInfo& input, |
| 408 | const TensorInfo& output, |
| 409 | const SpaceToDepthDescriptor& descriptor, |
| 410 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 411 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 412 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Narumol Prangnawarat | 15eb583 | 2019-05-20 15:31:05 +0100 | [diff] [blame] | 413 | bool IsSplitterSupported(const TensorInfo& input, |
| 414 | const std::vector<std::reference_wrapper<TensorInfo>>& outputs, |
| 415 | const ViewsDescriptor& descriptor, |
| 416 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 417 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 418 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matthew Jackson | 81e601c | 2019-07-11 12:07:09 +0100 | [diff] [blame] | 419 | bool IsStackSupported(const std::vector<const TensorInfo*>& inputs, |
Matthew Jackson | 2b8c1da | 2019-07-04 14:59:16 +0100 | [diff] [blame] | 420 | const TensorInfo& output, |
| 421 | const StackDescriptor& descriptor, |
| 422 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 423 | |
Derek Lamberti | 013c390 | 2019-10-21 10:46:16 +0100 | [diff] [blame] | 424 | bool IsStandInSupported(const std::vector<const TensorInfo*>& inputs, |
| 425 | const std::vector<const TensorInfo*>& outputs, |
| 426 | const StandInDescriptor& descriptor, |
| 427 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 428 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 429 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 430 | bool IsStridedSliceSupported(const TensorInfo& input, |
| 431 | const TensorInfo& output, |
| 432 | const StridedSliceDescriptor& descriptor, |
| 433 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 434 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 435 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 436 | bool IsSubtractionSupported(const TensorInfo& input0, |
| 437 | const TensorInfo& input1, |
| 438 | const TensorInfo& output, |
| 439 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 440 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 441 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 442 | bool IsSwitchSupported(const TensorInfo& input0, |
| 443 | const TensorInfo& input1, |
| 444 | const TensorInfo& output0, |
| 445 | const TensorInfo& output1, |
| 446 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Aron Virginas-Tar | 639fb04 | 2019-06-20 14:28:19 +0100 | [diff] [blame] | 447 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 448 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Aron Virginas-Tar | 639fb04 | 2019-06-20 14:28:19 +0100 | [diff] [blame] | 449 | bool IsTransposeConvolution2dSupported( |
| 450 | const TensorInfo& input, |
| 451 | const TensorInfo& output, |
| 452 | const TransposeConvolution2dDescriptor& descriptor, |
| 453 | const TensorInfo& weights, |
| 454 | const Optional<TensorInfo>& biases, |
| 455 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 456 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 457 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 458 | bool IsTransposeSupported(const TensorInfo& input, |
| 459 | const TensorInfo& output, |
| 460 | const TransposeDescriptor& descriptor, |
| 461 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 462 | |
Francis Murtagh | faf2966 | 2022-01-24 17:45:37 +0000 | [diff] [blame] | 463 | ARMNN_DEPRECATED_MSG_REMOVAL_DATE("This method is deprecated. Use IsLayerSupported instead.", "22.11") |
Narumol Prangnawarat | 8ed39ae | 2021-07-15 16:16:25 +0100 | [diff] [blame] | 464 | bool IsUnidirectionalSequenceLstmSupported( |
| 465 | const TensorInfo& input, |
| 466 | const TensorInfo& outputStateIn, |
| 467 | const TensorInfo& cellStateIn, |
Mike Kelly | 1299496 | 2022-04-21 11:57:09 +0100 | [diff] [blame] | 468 | const TensorInfo& outputStateOut, |
| 469 | const TensorInfo& cellStateOut, |
Narumol Prangnawarat | 8ed39ae | 2021-07-15 16:16:25 +0100 | [diff] [blame] | 470 | const TensorInfo& output, |
Narumol Prangnawarat | 8ed39ae | 2021-07-15 16:16:25 +0100 | [diff] [blame] | 471 | const LstmDescriptor& descriptor, |
| 472 | const LstmInputParamsInfo& paramsInfo, |
| 473 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 474 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 475 | }; |
| 476 | |
| 477 | } // namespace armnn |