David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #include <armnn/ILayerSupport.hpp> |
David Beck | 3cc9a62 | 2018-10-12 10:38:31 +0100 | [diff] [blame] | 7 | #include <armnn/Exceptions.hpp> |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 8 | |
| 9 | namespace armnn |
| 10 | { |
| 11 | |
| 12 | namespace |
| 13 | { |
| 14 | |
| 15 | bool DefaultLayerSupport(const char* func, |
| 16 | const char* file, |
| 17 | unsigned int line, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 18 | Optional<std::string&> reasonIfUnsupported) |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 19 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 20 | // NOTE: We only need to return the reason if the optional parameter is not empty |
| 21 | if (reasonIfUnsupported) |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 22 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 23 | std::stringstream message; |
| 24 | message << func << "is not implemented [" << file << ":" << line << "]"; |
| 25 | |
| 26 | reasonIfUnsupported.value() = message.str(); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 27 | } |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 28 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 29 | return false; |
| 30 | } |
| 31 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 32 | } // anonymous namespace |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 33 | |
| 34 | bool ILayerSupport::IsActivationSupported(const TensorInfo& input, |
| 35 | const TensorInfo& output, |
| 36 | const ActivationDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 37 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 38 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 39 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | bool ILayerSupport::IsAdditionSupported(const TensorInfo& input0, |
| 43 | const TensorInfo& input1, |
| 44 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 45 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 46 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 47 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | bool ILayerSupport::IsBatchNormalizationSupported(const TensorInfo& input, |
| 51 | const TensorInfo& output, |
| 52 | const TensorInfo& mean, |
| 53 | const TensorInfo& var, |
| 54 | const TensorInfo& beta, |
| 55 | const TensorInfo& gamma, |
| 56 | const BatchNormalizationDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 57 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 58 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 59 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 60 | } |
| 61 | |
Éanna Ó Catháin | 4e1e136 | 2018-11-12 11:36:34 +0000 | [diff] [blame^] | 62 | bool ILayerSupport::IsBatchToSpaceNdSupported(const TensorInfo& input, |
| 63 | const TensorInfo& output, |
| 64 | const BatchToSpaceNdDescriptor& descriptor, |
| 65 | Optional<std::string&> reasonIfUnsupported) const |
| 66 | { |
| 67 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 68 | } |
| 69 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 70 | bool ILayerSupport::IsConstantSupported(const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 71 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 72 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 73 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | bool ILayerSupport::IsConvertFp16ToFp32Supported(const TensorInfo& input, |
| 77 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 78 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 79 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 80 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | bool ILayerSupport::IsConvertFp32ToFp16Supported(const TensorInfo& input, |
| 84 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 85 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 86 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 87 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | bool ILayerSupport::IsConvolution2dSupported(const TensorInfo& input, |
| 91 | const TensorInfo& output, |
| 92 | const Convolution2dDescriptor& descriptor, |
| 93 | const TensorInfo& weights, |
David Beck | 5eec11d | 2018-10-04 15:43:17 +0100 | [diff] [blame] | 94 | const Optional<TensorInfo>& biases, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 95 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 96 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 97 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | bool ILayerSupport::IsDepthwiseConvolutionSupported(const TensorInfo& input, |
| 101 | const TensorInfo& output, |
| 102 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 103 | const TensorInfo& weights, |
David Beck | 5eec11d | 2018-10-04 15:43:17 +0100 | [diff] [blame] | 104 | const Optional<TensorInfo>& biases, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 105 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 106 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 107 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 108 | } |
| 109 | |
| 110 | bool ILayerSupport::IsDivisionSupported(const TensorInfo& input0, |
| 111 | const TensorInfo& input1, |
| 112 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 113 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 114 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 115 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 116 | } |
| 117 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 118 | bool ILayerSupport::IsFakeQuantizationSupported(const TensorInfo& input, |
| 119 | const FakeQuantizationDescriptor& descriptor, |
| 120 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 121 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 122 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 123 | } |
| 124 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 125 | bool ILayerSupport::IsFloorSupported(const TensorInfo& input, |
| 126 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 127 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 128 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 129 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | bool ILayerSupport::IsFullyConnectedSupported(const TensorInfo& input, |
| 133 | const TensorInfo& output, |
| 134 | const TensorInfo& weights, |
| 135 | const TensorInfo& biases, |
| 136 | const FullyConnectedDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 137 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 138 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 139 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 140 | } |
| 141 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 142 | bool ILayerSupport::IsInputSupported(const TensorInfo& input, |
| 143 | Optional<std::string&> reasonIfUnsupported) const |
| 144 | { |
| 145 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 146 | } |
| 147 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 148 | bool ILayerSupport::IsL2NormalizationSupported(const TensorInfo& input, |
| 149 | const TensorInfo& output, |
| 150 | const L2NormalizationDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 151 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 152 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 153 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 154 | } |
| 155 | |
| 156 | bool ILayerSupport::IsLstmSupported(const TensorInfo& input, |
| 157 | const TensorInfo& outputStateIn, |
| 158 | const TensorInfo& cellStateIn, |
| 159 | const TensorInfo& scratchBuffer, |
| 160 | const TensorInfo& outputStateOut, |
| 161 | const TensorInfo& cellStateOut, |
| 162 | const TensorInfo& output, |
| 163 | const LstmDescriptor& descriptor, |
| 164 | const TensorInfo& inputToForgetWeights, |
| 165 | const TensorInfo& inputToCellWeights, |
| 166 | const TensorInfo& inputToOutputWeights, |
| 167 | const TensorInfo& recurrentToForgetWeights, |
| 168 | const TensorInfo& recurrentToCellWeights, |
| 169 | const TensorInfo& recurrentToOutputWeights, |
| 170 | const TensorInfo& forgetGateBias, |
| 171 | const TensorInfo& cellBias, |
| 172 | const TensorInfo& outputGateBias, |
| 173 | const TensorInfo* inputToInputWeights, |
| 174 | const TensorInfo* recurrentToInputWeights, |
| 175 | const TensorInfo* cellToInputWeights, |
| 176 | const TensorInfo* inputGateBias, |
| 177 | const TensorInfo* projectionWeights, |
| 178 | const TensorInfo* projectionBias, |
| 179 | const TensorInfo* cellToForgetWeights, |
| 180 | const TensorInfo* cellToOutputWeights, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 181 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 182 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 183 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 184 | } |
| 185 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 186 | bool ILayerSupport::IsMeanSupported(const TensorInfo& input, |
| 187 | const TensorInfo& output, |
| 188 | const MeanDescriptor& descriptor, |
| 189 | Optional<std::string&> reasonIfUnsupported) const |
| 190 | { |
| 191 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 192 | } |
| 193 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 194 | bool ILayerSupport::IsMergerSupported(const std::vector<const TensorInfo*> inputs, |
| 195 | const OriginsDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 196 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 197 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 198 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 199 | } |
| 200 | |
| 201 | bool ILayerSupport::IsMultiplicationSupported(const TensorInfo& input0, |
| 202 | const TensorInfo& input1, |
| 203 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 204 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 205 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 206 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 207 | } |
| 208 | |
| 209 | bool ILayerSupport::IsNormalizationSupported(const TensorInfo& input, |
| 210 | const TensorInfo& output, |
| 211 | const NormalizationDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 212 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 213 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 214 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | bool ILayerSupport::IsOutputSupported(const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 218 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 219 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 220 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 221 | } |
| 222 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 223 | bool ILayerSupport::IsPadSupported(const TensorInfo& input, |
| 224 | const TensorInfo& output, |
| 225 | const PadDescriptor& descriptor, |
| 226 | Optional<std::string&> reasonIfUnsupported) const |
| 227 | { |
| 228 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 229 | } |
| 230 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 231 | bool ILayerSupport::IsPermuteSupported(const TensorInfo& input, |
| 232 | const TensorInfo& output, |
| 233 | const PermuteDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 234 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 235 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 236 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 237 | } |
| 238 | |
| 239 | bool ILayerSupport::IsPooling2dSupported(const TensorInfo& input, |
| 240 | const TensorInfo& output, |
| 241 | const Pooling2dDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 242 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 243 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 244 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 245 | } |
| 246 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 247 | bool ILayerSupport::IsReshapeSupported(const TensorInfo& input, |
| 248 | Optional<std::string&> reasonIfUnsupported) const |
| 249 | { |
| 250 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 251 | } |
| 252 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 253 | bool ILayerSupport::IsResizeBilinearSupported(const TensorInfo& input, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 254 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 255 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 256 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 257 | } |
| 258 | |
| 259 | bool ILayerSupport::IsSoftmaxSupported(const TensorInfo& input, |
| 260 | const TensorInfo& output, |
| 261 | const SoftmaxDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 262 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 263 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 264 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 265 | } |
| 266 | |
Nattapat Chaimanowong | 207ef9a | 2018-11-02 10:57:25 +0000 | [diff] [blame] | 267 | bool ILayerSupport::IsSpaceToBatchNdSupported(const TensorInfo& input, |
| 268 | const TensorInfo& output, |
| 269 | const SpaceToBatchNdDescriptor& descriptor, |
| 270 | Optional<std::string&> reasonIfUnsupported) const |
| 271 | { |
| 272 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 273 | } |
| 274 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 275 | bool ILayerSupport::IsSplitterSupported(const TensorInfo& input, |
| 276 | const ViewsDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 277 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 278 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 279 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 280 | } |
| 281 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 282 | bool ILayerSupport::IsSubtractionSupported(const TensorInfo& input0, |
| 283 | const TensorInfo& input1, |
| 284 | const TensorInfo& output, |
| 285 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 286 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 287 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 288 | } |
| 289 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 290 | } // namespace armnn |