Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <armnn/ILayerSupport.hpp> |
| 9 | |
| 10 | namespace armnn |
| 11 | { |
| 12 | |
| 13 | class LayerSupportBase : public ILayerSupport |
| 14 | { |
| 15 | public: |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame^] | 16 | ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead") |
Kevin May | 868eb14 | 2019-09-04 17:29:31 +0100 | [diff] [blame] | 17 | bool IsAbsSupported(const TensorInfo& input, |
| 18 | const TensorInfo& output, |
| 19 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 20 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 21 | bool IsActivationSupported(const TensorInfo& input, |
| 22 | const TensorInfo& output, |
| 23 | const ActivationDescriptor& descriptor, |
| 24 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 25 | |
| 26 | bool IsAdditionSupported(const TensorInfo& input0, |
| 27 | const TensorInfo& input1, |
| 28 | const TensorInfo& output, |
| 29 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 30 | |
Nikhil Raj | ee391d5 | 2019-09-05 17:50:44 +0100 | [diff] [blame] | 31 | bool IsArgMinMaxSupported(const TensorInfo& input, |
| 32 | const TensorInfo& output, |
| 33 | const ArgMinMaxDescriptor& descriptor, |
| 34 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 35 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 36 | bool IsBatchNormalizationSupported(const TensorInfo& input, |
| 37 | const TensorInfo& output, |
| 38 | const TensorInfo& mean, |
| 39 | const TensorInfo& var, |
| 40 | const TensorInfo& beta, |
| 41 | const TensorInfo& gamma, |
| 42 | const BatchNormalizationDescriptor& descriptor, |
| 43 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 44 | |
| 45 | bool IsBatchToSpaceNdSupported(const TensorInfo& input, |
| 46 | const TensorInfo& output, |
| 47 | const BatchToSpaceNdDescriptor& descriptor, |
| 48 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 49 | |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 50 | bool IsComparisonSupported(const TensorInfo& input0, |
| 51 | const TensorInfo& input1, |
| 52 | const TensorInfo& output, |
| 53 | const ComparisonDescriptor& descriptor, |
| 54 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 55 | |
Jim Flynn | 906f946 | 2019-05-10 13:55:21 +0100 | [diff] [blame] | 56 | bool IsConcatSupported(const std::vector<const TensorInfo*> inputs, |
| 57 | const TensorInfo& output, |
| 58 | const OriginsDescriptor& descriptor, |
| 59 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 60 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 61 | bool IsConstantSupported(const TensorInfo& output, |
| 62 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 63 | |
| 64 | bool IsConvertFp16ToFp32Supported(const TensorInfo& input, |
| 65 | const TensorInfo& output, |
| 66 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 67 | |
Matteo Martincigh | 3d6898c | 2019-01-15 16:11:44 +0000 | [diff] [blame] | 68 | bool IsConvertFp32ToFp16Supported( |
| 69 | const TensorInfo& input, |
| 70 | const TensorInfo& output, |
| 71 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 72 | |
| 73 | bool IsConvolution2dSupported(const TensorInfo& input, |
| 74 | const TensorInfo& output, |
| 75 | const Convolution2dDescriptor& descriptor, |
| 76 | const TensorInfo& weights, |
| 77 | const Optional<TensorInfo>& biases, |
| 78 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 79 | |
| 80 | bool IsDebugSupported(const TensorInfo& input, |
| 81 | const TensorInfo& output, |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 82 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 83 | |
Aron Virginas-Tar | dd6247f | 2019-09-19 14:31:17 +0100 | [diff] [blame] | 84 | bool IsDepthToSpaceSupported(const TensorInfo& input, |
| 85 | const TensorInfo& output, |
| 86 | const DepthToSpaceDescriptor& descriptor, |
| 87 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 88 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 89 | bool IsDepthwiseConvolutionSupported(const TensorInfo& input, |
| 90 | const TensorInfo& output, |
| 91 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 92 | const TensorInfo& weights, |
| 93 | const Optional<TensorInfo>& biases, |
| 94 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 95 | |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 96 | bool IsDequantizeSupported(const TensorInfo& input, |
| 97 | const TensorInfo& output, |
| 98 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 99 | |
Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 100 | bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings, |
| 101 | const TensorInfo& scores, |
| 102 | const TensorInfo& anchors, |
| 103 | const TensorInfo& detectionBoxes, |
| 104 | const TensorInfo& detectionClasses, |
| 105 | const TensorInfo& detectionScores, |
| 106 | const TensorInfo& numDetections, |
Narumol Prangnawarat | 94dd5d8 | 2019-01-23 18:06:26 +0000 | [diff] [blame] | 107 | const DetectionPostProcessDescriptor& descriptor, |
| 108 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 109 | |
Matteo Martincigh | eac246d | 2019-05-14 09:11:03 +0100 | [diff] [blame] | 110 | bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo& input, |
| 111 | const TensorInfo& output, |
| 112 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 113 | const TensorInfo& weights, |
| 114 | const Optional<TensorInfo>& biases, |
| 115 | Optional<std::string&> reasonIfUnsupported = |
| 116 | EmptyOptional()) const override; |
| 117 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 118 | bool IsDivisionSupported(const TensorInfo& input0, |
| 119 | const TensorInfo& input1, |
| 120 | const TensorInfo& output, |
| 121 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 122 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame^] | 123 | bool IsElementwiseUnarySupported(const TensorInfo& input, |
| 124 | const TensorInfo& output, |
| 125 | const ElementwiseUnaryDescriptor& descriptor, |
| 126 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 127 | |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 128 | ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 129 | bool IsEqualSupported(const TensorInfo& input0, |
| 130 | const TensorInfo& input1, |
| 131 | const TensorInfo& output, |
| 132 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 133 | |
| 134 | bool IsFakeQuantizationSupported(const TensorInfo& input, |
| 135 | const FakeQuantizationDescriptor& descriptor, |
| 136 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 137 | |
| 138 | bool IsFloorSupported(const TensorInfo& input, |
| 139 | const TensorInfo& output, |
| 140 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 141 | |
| 142 | bool IsFullyConnectedSupported(const TensorInfo& input, |
| 143 | const TensorInfo& output, |
| 144 | const TensorInfo& weights, |
| 145 | const TensorInfo& biases, |
| 146 | const FullyConnectedDescriptor& descriptor, |
| 147 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 148 | |
narpra01 | b89b05f | 2019-01-16 09:53:09 +0000 | [diff] [blame] | 149 | bool IsGatherSupported(const TensorInfo& input0, |
| 150 | const TensorInfo& input1, |
| 151 | const TensorInfo& output, |
| 152 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 153 | |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 154 | ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 155 | bool IsGreaterSupported(const TensorInfo& input0, |
| 156 | const TensorInfo& input1, |
| 157 | const TensorInfo& output, |
| 158 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 159 | |
| 160 | bool IsInputSupported(const TensorInfo& input, |
| 161 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 162 | |
Kevin May | ce5045a | 2019-10-02 14:07:47 +0100 | [diff] [blame] | 163 | bool IsInstanceNormalizationSupported( |
| 164 | const TensorInfo& input, |
| 165 | const TensorInfo& output, |
| 166 | const InstanceNormalizationDescriptor& descriptor, |
| 167 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 168 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 169 | bool IsL2NormalizationSupported(const TensorInfo& input, |
| 170 | const TensorInfo& output, |
| 171 | const L2NormalizationDescriptor& descriptor, |
| 172 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 173 | |
Aron Virginas-Tar | f982dea | 2019-10-11 14:07:53 +0100 | [diff] [blame] | 174 | bool IsLogSoftmaxSupported(const TensorInfo& input, |
| 175 | const TensorInfo& output, |
| 176 | const LogSoftmaxDescriptor& descriptor, |
| 177 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 178 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 179 | bool IsLstmSupported(const TensorInfo& input, |
| 180 | const TensorInfo& outputStateIn, |
| 181 | const TensorInfo& cellStateIn, |
| 182 | const TensorInfo& scratchBuffer, |
| 183 | const TensorInfo& outputStateOut, |
| 184 | const TensorInfo& cellStateOut, |
| 185 | const TensorInfo& output, |
| 186 | const LstmDescriptor& descriptor, |
Jan Eilers | d01a83c | 2019-07-03 18:20:40 +0100 | [diff] [blame] | 187 | const LstmInputParamsInfo& paramsInfo, |
| 188 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 189 | |
| 190 | bool IsMaximumSupported(const TensorInfo& input0, |
| 191 | const TensorInfo& input1, |
| 192 | const TensorInfo& output, |
| 193 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 194 | |
| 195 | bool IsMeanSupported(const TensorInfo& input, |
| 196 | const TensorInfo& output, |
| 197 | const MeanDescriptor& descriptor, |
| 198 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 199 | |
| 200 | bool IsMemCopySupported(const TensorInfo& input, |
| 201 | const TensorInfo& output, |
| 202 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 203 | |
Derek Lamberti | f674aa0 | 2019-08-01 15:56:25 +0100 | [diff] [blame] | 204 | bool IsMemImportSupported(const TensorInfo& input, |
| 205 | const TensorInfo& output, |
| 206 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 207 | |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 208 | bool IsMergeSupported(const TensorInfo& input0, |
| 209 | const TensorInfo& input1, |
| 210 | const TensorInfo& output, |
| 211 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 212 | |
Jim Flynn | 906f946 | 2019-05-10 13:55:21 +0100 | [diff] [blame] | 213 | ARMNN_DEPRECATED_MSG("Use IsConcatSupported instead") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 214 | bool IsMergerSupported(const std::vector<const TensorInfo*> inputs, |
| 215 | const TensorInfo& output, |
| 216 | const OriginsDescriptor& descriptor, |
| 217 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 218 | |
| 219 | bool IsMinimumSupported(const TensorInfo& input0, |
| 220 | const TensorInfo& input1, |
| 221 | const TensorInfo& output, |
| 222 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 223 | |
| 224 | bool IsMultiplicationSupported(const TensorInfo& input0, |
| 225 | const TensorInfo& input1, |
| 226 | const TensorInfo& output, |
| 227 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 228 | |
| 229 | bool IsNormalizationSupported(const TensorInfo& input, |
| 230 | const TensorInfo& output, |
| 231 | const NormalizationDescriptor& descriptor, |
| 232 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 233 | |
| 234 | bool IsOutputSupported(const TensorInfo& output, |
| 235 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 236 | |
| 237 | bool IsPadSupported(const TensorInfo& input, |
| 238 | const TensorInfo& output, |
| 239 | const PadDescriptor& descriptor, |
| 240 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 241 | |
| 242 | bool IsPermuteSupported(const TensorInfo& input, |
| 243 | const TensorInfo& output, |
| 244 | const PermuteDescriptor& descriptor, |
| 245 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 246 | |
| 247 | bool IsPooling2dSupported(const TensorInfo& input, |
| 248 | const TensorInfo& output, |
| 249 | const Pooling2dDescriptor& descriptor, |
| 250 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 251 | |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 252 | bool IsPreCompiledSupported(const TensorInfo& input, |
| 253 | const PreCompiledDescriptor& descriptor, |
| 254 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 255 | |
Matteo Martincigh | 0e406ee | 2019-06-12 15:42:18 +0100 | [diff] [blame] | 256 | bool IsPreluSupported(const TensorInfo& input, |
| 257 | const TensorInfo& alpha, |
| 258 | const TensorInfo& output, |
| 259 | Optional<std::string &> reasonIfUnsupported) const override; |
| 260 | |
Derek Lamberti | a9cca6a | 2019-03-25 15:41:58 +0000 | [diff] [blame] | 261 | bool IsQuantizeSupported(const TensorInfo& input, |
| 262 | const TensorInfo& output, |
| 263 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 264 | |
James Conroy | ee18dc8 | 2019-07-17 11:27:46 +0100 | [diff] [blame] | 265 | bool IsQuantizedLstmSupported(const TensorInfo& input, |
| 266 | const TensorInfo& previousCellStateIn, |
| 267 | const TensorInfo& previousOutputIn, |
| 268 | const TensorInfo& cellStateOut, |
| 269 | const TensorInfo& output, |
| 270 | const QuantizedLstmInputParamsInfo& paramsInfo, |
| 271 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 272 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 273 | bool IsReshapeSupported(const TensorInfo& input, |
| 274 | const ReshapeDescriptor& descriptor, |
| 275 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 276 | |
Teresa Charlin | a9075df | 2019-06-27 15:41:57 +0100 | [diff] [blame] | 277 | bool IsResizeSupported(const TensorInfo& input, |
| 278 | const TensorInfo& output, |
| 279 | const ResizeDescriptor& descriptor, |
| 280 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 281 | |
Aron Virginas-Tar | 169d2f1 | 2019-07-01 19:01:44 +0100 | [diff] [blame] | 282 | ARMNN_DEPRECATED_MSG("Use IsResizeSupported instead") |
| 283 | bool IsResizeBilinearSupported(const TensorInfo& input, |
| 284 | const TensorInfo& output, |
| 285 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 286 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame^] | 287 | ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 288 | bool IsRsqrtSupported(const TensorInfo& input, |
| 289 | const TensorInfo& output, |
| 290 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 291 | |
Aron Virginas-Tar | 636ab40 | 2019-09-16 14:27:45 +0100 | [diff] [blame] | 292 | bool IsSliceSupported(const TensorInfo& input, |
| 293 | const TensorInfo& output, |
| 294 | const SliceDescriptor& descriptor, |
| 295 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 296 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 297 | bool IsSoftmaxSupported(const TensorInfo& input, |
| 298 | const TensorInfo& output, |
| 299 | const SoftmaxDescriptor& descriptor, |
| 300 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 301 | |
| 302 | bool IsSpaceToBatchNdSupported(const TensorInfo& input, |
| 303 | const TensorInfo& output, |
| 304 | const SpaceToBatchNdDescriptor& descriptor, |
| 305 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 306 | |
Aron Virginas-Tar | 972af15 | 2019-06-11 14:14:03 +0100 | [diff] [blame] | 307 | bool IsSpaceToDepthSupported(const TensorInfo& input, |
| 308 | const TensorInfo& output, |
| 309 | const SpaceToDepthDescriptor& descriptor, |
| 310 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 311 | |
Narumol Prangnawarat | 15eb583 | 2019-05-20 15:31:05 +0100 | [diff] [blame] | 312 | ARMNN_DEPRECATED_MSG("Use IsSplitterSupported with outputs instead") |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 313 | bool IsSplitterSupported(const TensorInfo& input, |
| 314 | const ViewsDescriptor& descriptor, |
| 315 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 316 | |
Narumol Prangnawarat | 15eb583 | 2019-05-20 15:31:05 +0100 | [diff] [blame] | 317 | bool IsSplitterSupported(const TensorInfo& input, |
| 318 | const std::vector<std::reference_wrapper<TensorInfo>>& outputs, |
| 319 | const ViewsDescriptor& descriptor, |
| 320 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 321 | |
Matthew Jackson | 81e601c | 2019-07-11 12:07:09 +0100 | [diff] [blame] | 322 | bool IsStackSupported(const std::vector<const TensorInfo*>& inputs, |
Matthew Jackson | 2b8c1da | 2019-07-04 14:59:16 +0100 | [diff] [blame] | 323 | const TensorInfo& output, |
| 324 | const StackDescriptor& descriptor, |
| 325 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 326 | |
Derek Lamberti | 013c390 | 2019-10-21 10:46:16 +0100 | [diff] [blame] | 327 | bool IsStandInSupported(const std::vector<const TensorInfo*>& inputs, |
| 328 | const std::vector<const TensorInfo*>& outputs, |
| 329 | const StandInDescriptor& descriptor, |
| 330 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 331 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 332 | bool IsStridedSliceSupported(const TensorInfo& input, |
| 333 | const TensorInfo& output, |
| 334 | const StridedSliceDescriptor& descriptor, |
| 335 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 336 | |
| 337 | bool IsSubtractionSupported(const TensorInfo& input0, |
| 338 | const TensorInfo& input1, |
| 339 | const TensorInfo& output, |
| 340 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 341 | |
| 342 | bool IsSwitchSupported(const TensorInfo& input0, |
| 343 | const TensorInfo& input1, |
| 344 | const TensorInfo& output0, |
| 345 | const TensorInfo& output1, |
| 346 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Aron Virginas-Tar | 639fb04 | 2019-06-20 14:28:19 +0100 | [diff] [blame] | 347 | |
| 348 | bool IsTransposeConvolution2dSupported( |
| 349 | const TensorInfo& input, |
| 350 | const TensorInfo& output, |
| 351 | const TransposeConvolution2dDescriptor& descriptor, |
| 352 | const TensorInfo& weights, |
| 353 | const Optional<TensorInfo>& biases, |
| 354 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 355 | }; |
| 356 | |
| 357 | } // namespace armnn |