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 | |
| 62 | bool ILayerSupport::IsConstantSupported(const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 63 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 64 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 65 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | bool ILayerSupport::IsConvertFp16ToFp32Supported(const TensorInfo& input, |
| 69 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 70 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 71 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 72 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | bool ILayerSupport::IsConvertFp32ToFp16Supported(const TensorInfo& input, |
| 76 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 77 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 78 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 79 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | bool ILayerSupport::IsConvolution2dSupported(const TensorInfo& input, |
| 83 | const TensorInfo& output, |
| 84 | const Convolution2dDescriptor& descriptor, |
| 85 | const TensorInfo& weights, |
David Beck | 5eec11d | 2018-10-04 15:43:17 +0100 | [diff] [blame] | 86 | const Optional<TensorInfo>& biases, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 87 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 88 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 89 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 90 | } |
| 91 | |
| 92 | bool ILayerSupport::IsDepthwiseConvolutionSupported(const TensorInfo& input, |
| 93 | const TensorInfo& output, |
| 94 | const DepthwiseConvolution2dDescriptor& descriptor, |
| 95 | const TensorInfo& weights, |
David Beck | 5eec11d | 2018-10-04 15:43:17 +0100 | [diff] [blame] | 96 | const Optional<TensorInfo>& biases, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 97 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 98 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 99 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 100 | } |
| 101 | |
| 102 | bool ILayerSupport::IsDivisionSupported(const TensorInfo& input0, |
| 103 | const TensorInfo& input1, |
| 104 | const TensorInfo& output, |
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 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 110 | bool ILayerSupport::IsFakeQuantizationSupported(const TensorInfo& input, |
| 111 | const FakeQuantizationDescriptor& descriptor, |
| 112 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 113 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 114 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 115 | } |
| 116 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 117 | bool ILayerSupport::IsFloorSupported(const TensorInfo& input, |
| 118 | const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 119 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 120 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 121 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | bool ILayerSupport::IsFullyConnectedSupported(const TensorInfo& input, |
| 125 | const TensorInfo& output, |
| 126 | const TensorInfo& weights, |
| 127 | const TensorInfo& biases, |
| 128 | const FullyConnectedDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 129 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 130 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 131 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 132 | } |
| 133 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 134 | bool ILayerSupport::IsInputSupported(const TensorInfo& input, |
| 135 | Optional<std::string&> reasonIfUnsupported) const |
| 136 | { |
| 137 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 138 | } |
| 139 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 140 | bool ILayerSupport::IsL2NormalizationSupported(const TensorInfo& input, |
| 141 | const TensorInfo& output, |
| 142 | const L2NormalizationDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 143 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 144 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 145 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 146 | } |
| 147 | |
| 148 | bool ILayerSupport::IsLstmSupported(const TensorInfo& input, |
| 149 | const TensorInfo& outputStateIn, |
| 150 | const TensorInfo& cellStateIn, |
| 151 | const TensorInfo& scratchBuffer, |
| 152 | const TensorInfo& outputStateOut, |
| 153 | const TensorInfo& cellStateOut, |
| 154 | const TensorInfo& output, |
| 155 | const LstmDescriptor& descriptor, |
| 156 | const TensorInfo& inputToForgetWeights, |
| 157 | const TensorInfo& inputToCellWeights, |
| 158 | const TensorInfo& inputToOutputWeights, |
| 159 | const TensorInfo& recurrentToForgetWeights, |
| 160 | const TensorInfo& recurrentToCellWeights, |
| 161 | const TensorInfo& recurrentToOutputWeights, |
| 162 | const TensorInfo& forgetGateBias, |
| 163 | const TensorInfo& cellBias, |
| 164 | const TensorInfo& outputGateBias, |
| 165 | const TensorInfo* inputToInputWeights, |
| 166 | const TensorInfo* recurrentToInputWeights, |
| 167 | const TensorInfo* cellToInputWeights, |
| 168 | const TensorInfo* inputGateBias, |
| 169 | const TensorInfo* projectionWeights, |
| 170 | const TensorInfo* projectionBias, |
| 171 | const TensorInfo* cellToForgetWeights, |
| 172 | const TensorInfo* cellToOutputWeights, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 173 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 174 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 175 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 176 | } |
| 177 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 178 | bool ILayerSupport::IsMeanSupported(const TensorInfo& input, |
| 179 | const TensorInfo& output, |
| 180 | const MeanDescriptor& descriptor, |
| 181 | Optional<std::string&> reasonIfUnsupported) const |
| 182 | { |
| 183 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 184 | } |
| 185 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 186 | bool ILayerSupport::IsMergerSupported(const std::vector<const TensorInfo*> inputs, |
| 187 | const OriginsDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 188 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 189 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 190 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | bool ILayerSupport::IsMultiplicationSupported(const TensorInfo& input0, |
| 194 | const TensorInfo& input1, |
| 195 | const TensorInfo& output, |
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::IsNormalizationSupported(const TensorInfo& input, |
| 202 | const TensorInfo& output, |
| 203 | const NormalizationDescriptor& descriptor, |
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::IsOutputSupported(const TensorInfo& output, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 210 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 211 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 212 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 213 | } |
| 214 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 215 | bool ILayerSupport::IsPadSupported(const TensorInfo& input, |
| 216 | const TensorInfo& output, |
| 217 | const PadDescriptor& descriptor, |
| 218 | Optional<std::string&> reasonIfUnsupported) const |
| 219 | { |
| 220 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 221 | } |
| 222 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 223 | bool ILayerSupport::IsPermuteSupported(const TensorInfo& input, |
| 224 | const TensorInfo& output, |
| 225 | const PermuteDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 226 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 227 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 228 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | bool ILayerSupport::IsPooling2dSupported(const TensorInfo& input, |
| 232 | const TensorInfo& output, |
| 233 | const Pooling2dDescriptor& 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 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 239 | bool ILayerSupport::IsReshapeSupported(const TensorInfo& input, |
| 240 | Optional<std::string&> reasonIfUnsupported) const |
| 241 | { |
| 242 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 243 | } |
| 244 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 245 | bool ILayerSupport::IsResizeBilinearSupported(const TensorInfo& input, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 246 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 247 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 248 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | bool ILayerSupport::IsSoftmaxSupported(const TensorInfo& input, |
| 252 | const TensorInfo& output, |
| 253 | const SoftmaxDescriptor& descriptor, |
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 | |
Nattapat Chaimanowong | 207ef9a | 2018-11-02 10:57:25 +0000 | [diff] [blame] | 259 | bool ILayerSupport::IsSpaceToBatchNdSupported(const TensorInfo& input, |
| 260 | const TensorInfo& output, |
| 261 | const SpaceToBatchNdDescriptor& descriptor, |
| 262 | Optional<std::string&> reasonIfUnsupported) const |
| 263 | { |
| 264 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
| 265 | } |
| 266 | |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 267 | bool ILayerSupport::IsSplitterSupported(const TensorInfo& input, |
| 268 | const ViewsDescriptor& descriptor, |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 269 | Optional<std::string&> reasonIfUnsupported) const |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 270 | { |
arovir01 | d6c10ed | 2018-10-05 15:46:51 +0100 | [diff] [blame] | 271 | return DefaultLayerSupport(__func__, __FILE__, __LINE__, reasonIfUnsupported); |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 272 | } |
| 273 | |
arovir01 | 537a0b6 | 2018-10-08 12:01:04 +0100 | [diff] [blame] | 274 | bool ILayerSupport::IsSubtractionSupported(const TensorInfo& input0, |
| 275 | const TensorInfo& input1, |
| 276 | const TensorInfo& output, |
| 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 | } // namespace armnn |