telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
Keith Davis | 69e653f | 2020-07-02 11:49:26 +0100 | [diff] [blame] | 2 | // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | #pragma once |
| 6 | |
Sadik Armagan | 045f6be | 2020-09-10 13:37:32 +0100 | [diff] [blame] | 7 | #include <armnn/backends/IBackendInternal.hpp> |
| 8 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 9 | #include <backendsCommon/LayerSupportBase.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 10 | |
| 11 | namespace armnn |
| 12 | { |
| 13 | |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 14 | class NeonLayerSupport : public LayerSupportBase |
arovir01 | 4424b0a | 2018-10-04 10:46:04 +0100 | [diff] [blame] | 15 | { |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 16 | public: |
Sadik Armagan | 045f6be | 2020-09-10 13:37:32 +0100 | [diff] [blame] | 17 | explicit NeonLayerSupport(const IBackendInternal::IBackendSpecificModelContextPtr& modelContextPtr); |
| 18 | NeonLayerSupport(); |
| 19 | |
| 20 | ~NeonLayerSupport() {} |
| 21 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 22 | ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead") |
Aron Virginas-Tar | 914e4db | 2019-09-09 13:36:45 +0100 | [diff] [blame] | 23 | bool IsAbsSupported(const TensorInfo& input, |
| 24 | const TensorInfo& output, |
| 25 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 26 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 27 | bool IsActivationSupported(const TensorInfo& input, |
| 28 | const TensorInfo& output, |
| 29 | const ActivationDescriptor& descriptor, |
| 30 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 31 | |
| 32 | bool IsAdditionSupported(const TensorInfo& input0, |
| 33 | const TensorInfo& input1, |
| 34 | const TensorInfo& output, |
| 35 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 36 | |
James Conroy | d47a064 | 2019-09-17 14:22:06 +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 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 42 | bool IsBatchNormalizationSupported(const TensorInfo& input, |
| 43 | const TensorInfo& output, |
| 44 | const TensorInfo& mean, |
| 45 | const TensorInfo& var, |
| 46 | const TensorInfo& beta, |
| 47 | const TensorInfo& gamma, |
| 48 | const BatchNormalizationDescriptor& descriptor, |
| 49 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 50 | |
Mike Kelly | 5685802 | 2020-01-27 12:14:47 +0000 | [diff] [blame] | 51 | bool IsBatchToSpaceNdSupported(const TensorInfo& input, |
| 52 | const TensorInfo& output, |
| 53 | const BatchToSpaceNdDescriptor& descriptor, |
| 54 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 55 | |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 56 | bool IsComparisonSupported(const TensorInfo& input0, |
| 57 | const TensorInfo& input1, |
| 58 | const TensorInfo& output, |
| 59 | const ComparisonDescriptor& descriptor, |
| 60 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 61 | |
Jim Flynn | 906f946 | 2019-05-10 13:55:21 +0100 | [diff] [blame] | 62 | bool IsConcatSupported(const std::vector<const TensorInfo*> inputs, |
| 63 | const TensorInfo& output, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 64 | const ConcatDescriptor& descriptor, |
Jim Flynn | 906f946 | 2019-05-10 13:55:21 +0100 | [diff] [blame] | 65 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 66 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 67 | bool IsConstantSupported(const TensorInfo& output, |
| 68 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 69 | |
Narumol Prangnawarat | 250d392 | 2020-03-30 16:11:04 +0100 | [diff] [blame] | 70 | bool IsConvertBf16ToFp32Supported(const TensorInfo& input, |
| 71 | const TensorInfo& output, |
| 72 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 73 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 74 | bool IsConvertFp16ToFp32Supported(const TensorInfo& input, |
| 75 | const TensorInfo& output, |
| 76 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 77 | |
Narumol Prangnawarat | 250d392 | 2020-03-30 16:11:04 +0100 | [diff] [blame] | 78 | bool IsConvertFp32ToBf16Supported(const TensorInfo& input, |
| 79 | const TensorInfo& output, |
| 80 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 81 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 82 | bool IsConvertFp32ToFp16Supported(const TensorInfo& input, |
| 83 | const TensorInfo& output, |
| 84 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 85 | |
| 86 | bool IsConvolution2dSupported(const TensorInfo& input, |
| 87 | const TensorInfo& output, |
| 88 | const Convolution2dDescriptor& descriptor, |
| 89 | const TensorInfo& weights, |
| 90 | const Optional<TensorInfo>& biases, |
| 91 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 92 | |
Aron Virginas-Tar | 2f00b74 | 2019-09-30 13:28:08 +0100 | [diff] [blame] | 93 | bool IsDepthToSpaceSupported(const TensorInfo& input, |
| 94 | const TensorInfo& output, |
| 95 | const DepthToSpaceDescriptor& descriptor, |
| 96 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 97 | |
| 98 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 99 | bool IsDepthwiseConvolutionSupported(const TensorInfo& input, |
| 100 | const TensorInfo& output, |
| 101 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 102 | const TensorInfo& weights, |
| 103 | const Optional<TensorInfo>& biases, |
| 104 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 105 | |
Narumol Prangnawarat | 01961a7 | 2019-05-30 16:47:12 +0100 | [diff] [blame] | 106 | bool IsDequantizeSupported(const TensorInfo& input, |
| 107 | const TensorInfo& output, |
| 108 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 109 | |
Pablo Tello | f0bd683 | 2019-04-26 17:58:13 +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&> reason = EmptyOptional()) const override; |
| 116 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 117 | bool IsElementwiseUnarySupported(const TensorInfo& input, |
| 118 | const TensorInfo& output, |
| 119 | const ElementwiseUnaryDescriptor& descriptor, |
| 120 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 121 | |
Sadik Armagan | a792a05 | 2020-06-23 16:22:23 +0100 | [diff] [blame] | 122 | bool IsFillSupported(const TensorInfo& input, |
| 123 | const TensorInfo& output, |
| 124 | const FillDescriptor& descriptor, |
| 125 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 126 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 127 | bool IsFloorSupported(const TensorInfo& input, |
| 128 | const TensorInfo& output, |
| 129 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 130 | |
| 131 | bool IsFullyConnectedSupported(const TensorInfo& input, |
| 132 | const TensorInfo& output, |
| 133 | const TensorInfo& weights, |
| 134 | const TensorInfo& biases, |
| 135 | const FullyConnectedDescriptor& descriptor, |
| 136 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 137 | |
Teresa Charlin | f540eb8 | 2020-04-10 19:24:55 +0100 | [diff] [blame] | 138 | bool IsGatherSupported(const TensorInfo& input0, |
| 139 | const TensorInfo& input1, |
| 140 | const TensorInfo& output, |
Teresa Charlin | 5266473 | 2020-06-29 16:27:03 +0100 | [diff] [blame] | 141 | const GatherDescriptor& descriptor, |
Teresa Charlin | f540eb8 | 2020-04-10 19:24:55 +0100 | [diff] [blame] | 142 | Optional<std::string&> reasonIfUnsupported) const override; |
| 143 | |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 144 | ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead") |
kevmay01 | eed8592 | 2019-01-28 08:37:25 +0000 | [diff] [blame] | 145 | bool IsGreaterSupported(const TensorInfo& input0, |
| 146 | const TensorInfo& input1, |
| 147 | const TensorInfo& output, |
| 148 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 149 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 150 | bool IsInputSupported(const TensorInfo& input, |
| 151 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 152 | |
Sadik Armagan | 0d4863d | 2019-10-09 14:26:32 +0100 | [diff] [blame] | 153 | bool IsInstanceNormalizationSupported(const TensorInfo& input, |
| 154 | const TensorInfo& output, |
| 155 | const InstanceNormalizationDescriptor& descriptor, |
| 156 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 157 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 158 | bool IsL2NormalizationSupported(const TensorInfo& input, |
| 159 | const TensorInfo& output, |
| 160 | const L2NormalizationDescriptor& descriptor, |
| 161 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 162 | |
James Conroy | 177df1e | 2020-11-13 10:18:51 +0000 | [diff] [blame] | 163 | bool IsLogicalBinarySupported(const TensorInfo& input0, |
| 164 | const TensorInfo& input1, |
| 165 | const TensorInfo& output, |
| 166 | const LogicalBinaryDescriptor& descriptor, |
| 167 | Optional<std::string&> reasonIfUnsupported) const override; |
| 168 | |
Keith Davis | 69e653f | 2020-07-02 11:49:26 +0100 | [diff] [blame] | 169 | bool IsLogSoftmaxSupported(const TensorInfo& input, |
| 170 | const TensorInfo& output, |
| 171 | const LogSoftmaxDescriptor& descriptor, |
| 172 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 173 | |
Jan Eilers | ad5293a | 2019-07-08 09:57:55 +0100 | [diff] [blame] | 174 | bool IsLstmSupported(const TensorInfo& input, |
| 175 | const TensorInfo& outputStateIn, |
| 176 | const TensorInfo& cellStateIn, |
| 177 | const TensorInfo& scratchBuffer, |
| 178 | const TensorInfo& outputStateOut, |
| 179 | const TensorInfo& cellStateOut, |
| 180 | const TensorInfo& output, |
| 181 | const LstmDescriptor& descriptor, |
| 182 | const LstmInputParamsInfo& paramsInfo, |
| 183 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 184 | |
Nattapat Chaimanowong | 4e6597a | 2018-12-20 14:14:06 +0000 | [diff] [blame] | 185 | bool IsMaximumSupported(const TensorInfo& input0, |
| 186 | const TensorInfo& input1, |
| 187 | const TensorInfo& output, |
| 188 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 189 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 190 | bool IsMeanSupported(const TensorInfo& input, |
| 191 | const TensorInfo& output, |
| 192 | const MeanDescriptor& descriptor, |
| 193 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 194 | |
Jim Flynn | 906f946 | 2019-05-10 13:55:21 +0100 | [diff] [blame] | 195 | ARMNN_DEPRECATED_MSG("Use IsConcatSupported instead") |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 196 | bool IsMergerSupported(const std::vector<const TensorInfo*> inputs, |
Nikhil Raj | 8599a41 | 2018-11-19 14:51:07 +0000 | [diff] [blame] | 197 | const TensorInfo& output, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 198 | const MergerDescriptor& descriptor, |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 199 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 200 | |
Conor Kennedy | 54b2169 | 2019-01-09 07:57:38 +0000 | [diff] [blame] | 201 | bool IsMinimumSupported(const TensorInfo& input0, |
| 202 | const TensorInfo& input1, |
| 203 | const TensorInfo& output, |
| 204 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 205 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 206 | bool IsMultiplicationSupported(const TensorInfo& input0, |
| 207 | const TensorInfo& input1, |
| 208 | const TensorInfo& output, |
| 209 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 210 | |
Pablo Tello | e61f071 | 2020-01-23 10:37:17 +0000 | [diff] [blame] | 211 | bool IsDivisionSupported(const TensorInfo& input0, |
| 212 | const TensorInfo& input1, |
| 213 | const TensorInfo& output, |
| 214 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 215 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 216 | bool IsNormalizationSupported(const TensorInfo& input, |
| 217 | const TensorInfo& output, |
| 218 | const NormalizationDescriptor& descriptor, |
| 219 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 220 | |
| 221 | bool IsOutputSupported(const TensorInfo& output, |
| 222 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 223 | |
Éanna Ó Catháin | 1205574 | 2019-01-25 10:01:40 +0000 | [diff] [blame] | 224 | bool IsPadSupported(const TensorInfo& input, |
| 225 | const TensorInfo& output, |
| 226 | const PadDescriptor& descriptor, |
| 227 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 228 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 229 | bool IsPermuteSupported(const TensorInfo& input, |
| 230 | const TensorInfo& output, |
| 231 | const PermuteDescriptor& descriptor, |
| 232 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 233 | |
| 234 | bool IsPooling2dSupported(const TensorInfo& input, |
| 235 | const TensorInfo& output, |
| 236 | const Pooling2dDescriptor& descriptor, |
| 237 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 238 | |
Nikhil Raj | 9b46148 | 2019-07-03 15:58:31 +0100 | [diff] [blame] | 239 | bool IsPreluSupported(const TensorInfo& input, |
| 240 | const TensorInfo& alpha, |
| 241 | const TensorInfo& output, |
| 242 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 243 | |
James Conroy | cc34093 | 2020-05-12 18:08:52 +0100 | [diff] [blame] | 244 | bool IsQLstmSupported(const TensorInfo& input, |
| 245 | const TensorInfo& previousOutputIn, |
| 246 | const TensorInfo& previousCellStateIn, |
| 247 | const TensorInfo& outputStateOut, |
| 248 | const TensorInfo& cellStateOut, |
| 249 | const TensorInfo& output, |
| 250 | const QLstmDescriptor& descriptor, |
| 251 | const LstmInputParamsInfo& paramsInfo, |
| 252 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 253 | |
Sadik Armagan | fabc289 | 2019-05-31 09:05:11 +0100 | [diff] [blame] | 254 | bool IsQuantizeSupported(const TensorInfo& input, |
| 255 | const TensorInfo& output, |
| 256 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 257 | |
Francis Murtagh | 4fc3c48 | 2019-08-02 13:20:54 +0100 | [diff] [blame] | 258 | bool IsQuantizedLstmSupported(const TensorInfo& input, |
| 259 | const TensorInfo& cellStateIn, |
| 260 | const TensorInfo& outputStateIn, |
| 261 | const TensorInfo& cellStateOut, |
| 262 | const TensorInfo& outputStateOut, |
| 263 | const QuantizedLstmInputParamsInfo& paramsInfo, |
| 264 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 265 | |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 266 | bool IsReduceSupported(const TensorInfo& input, |
| 267 | const TensorInfo& output, |
| 268 | const ReduceDescriptor& descriptor, |
| 269 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 270 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 271 | bool IsReshapeSupported(const TensorInfo& input, |
Kevin May | a023c40 | 2019-12-12 17:28:05 +0000 | [diff] [blame] | 272 | const TensorInfo& output, |
Matteo Martincigh | 992d6dc | 2019-01-10 17:34:20 +0000 | [diff] [blame] | 273 | const ReshapeDescriptor& descriptor, |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 274 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 275 | |
Aron Virginas-Tar | 169d2f1 | 2019-07-01 19:01:44 +0100 | [diff] [blame] | 276 | bool IsResizeSupported(const TensorInfo& input, |
| 277 | const TensorInfo& output, |
| 278 | const ResizeDescriptor& descriptor, |
| 279 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 280 | |
| 281 | ARMNN_DEPRECATED_MSG("Use IsResizeSupported instead") |
Sadik Armagan | c625f00 | 2018-12-17 11:32:16 +0000 | [diff] [blame] | 282 | bool IsResizeBilinearSupported(const TensorInfo& input, |
| 283 | const TensorInfo& output, |
| 284 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 285 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 286 | ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead") |
Aron Virginas-Tar | 0dd3b43 | 2019-09-10 13:55:09 +0100 | [diff] [blame] | 287 | bool IsRsqrtSupported(const TensorInfo& input, |
| 288 | const TensorInfo& output, |
| 289 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 290 | |
josh minor | 036f02d | 2019-11-15 14:53:22 -0600 | [diff] [blame] | 291 | bool IsSliceSupported(const TensorInfo& input, |
| 292 | const TensorInfo& output, |
| 293 | const SliceDescriptor& descriptor, |
| 294 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 295 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 296 | bool IsSoftmaxSupported(const TensorInfo& input, |
| 297 | const TensorInfo& output, |
| 298 | const SoftmaxDescriptor& descriptor, |
| 299 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 300 | |
Mike Kelly | 0be3a88 | 2020-01-24 11:27:50 +0000 | [diff] [blame] | 301 | bool IsSpaceToBatchNdSupported(const TensorInfo& input, |
| 302 | const TensorInfo& output, |
| 303 | const SpaceToBatchNdDescriptor& descriptor, |
| 304 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 305 | |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 306 | bool IsSpaceToDepthSupported(const TensorInfo& input, |
| 307 | const TensorInfo& output, |
| 308 | const SpaceToDepthDescriptor& descriptor, |
| 309 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 310 | |
Narumol Prangnawarat | 15eb583 | 2019-05-20 15:31:05 +0100 | [diff] [blame] | 311 | ARMNN_DEPRECATED_MSG("Use IsSplitterSupported with outputs instead") |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 312 | bool IsSplitterSupported(const TensorInfo& input, |
| 313 | const ViewsDescriptor& descriptor, |
| 314 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 315 | |
Narumol Prangnawarat | 15eb583 | 2019-05-20 15:31:05 +0100 | [diff] [blame] | 316 | bool IsSplitterSupported(const TensorInfo& input, |
| 317 | const std::vector<std::reference_wrapper<TensorInfo>>& outputs, |
| 318 | const ViewsDescriptor& descriptor, |
| 319 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 320 | |
Matthew Jackson | 87f65ea | 2019-08-01 10:01:34 +0100 | [diff] [blame] | 321 | bool IsStackSupported(const std::vector<const TensorInfo*>& inputs, |
| 322 | const TensorInfo& output, |
| 323 | const StackDescriptor& descriptor, |
| 324 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 325 | |
FinnWilliamsArm | 1fa1919 | 2019-08-02 17:26:31 +0100 | [diff] [blame] | 326 | bool IsStridedSliceSupported(const TensorInfo& input, |
| 327 | const TensorInfo& output, |
| 328 | const StridedSliceDescriptor& descriptor, |
| 329 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 330 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 331 | bool IsSubtractionSupported(const TensorInfo& input0, |
| 332 | const TensorInfo& input1, |
| 333 | const TensorInfo& output, |
| 334 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 335 | |
| 336 | bool IsTransposeConvolution2dSupported(const TensorInfo& input, |
| 337 | const TensorInfo& output, |
| 338 | const TransposeConvolution2dDescriptor& descriptor, |
| 339 | const TensorInfo& weights, |
| 340 | const Optional<TensorInfo>& biases, |
| 341 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 342 | |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 343 | bool IsTransposeSupported(const TensorInfo& input, |
| 344 | const TensorInfo& output, |
| 345 | const TransposeDescriptor& descriptor, |
| 346 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override; |
| 347 | |
Sadik Armagan | 045f6be | 2020-09-10 13:37:32 +0100 | [diff] [blame] | 348 | private: |
| 349 | const IBackendInternal::IBackendSpecificModelContextPtr m_ModelContextPtr; |
| 350 | |
Aron Virginas-Tar | fc82431 | 2018-10-15 15:00:13 +0100 | [diff] [blame] | 351 | }; // class NeonLayerSupport |
arovir01 | 4424b0a | 2018-10-04 10:46:04 +0100 | [diff] [blame] | 352 | |
arovir01 | 7ff76c5 | 2018-10-09 09:40:58 +0100 | [diff] [blame] | 353 | } // namespace armnn |