telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. 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 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 7 | #include "CpuTensorHandleFwd.hpp" |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 8 | #include "WorkloadDataFwd.hpp" |
| 9 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 10 | #include <InternalTypes.hpp> |
| 11 | |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 12 | #include <armnn/Descriptors.hpp> |
| 13 | #include <armnn/Exceptions.hpp> |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 14 | #include <armnn/Types.hpp> |
| 15 | #include <armnn/Tensor.hpp> |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 16 | |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 17 | #include <backendsCommon/OutputHandler.hpp> |
| 18 | #include <backendsCommon/WorkloadInfo.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 19 | |
| 20 | namespace armnn |
| 21 | { |
| 22 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 23 | //A helper function that returns the bias data type required for given input data type. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 24 | DataType GetBiasDataType(DataType inputDataType); |
| 25 | |
| 26 | struct WorkloadInfo; |
| 27 | |
| 28 | struct QueueDescriptor |
| 29 | { |
| 30 | std::vector<ITensorHandle*> m_Inputs; |
| 31 | std::vector<ITensorHandle*> m_Outputs; |
| 32 | |
| 33 | void ValidateInputsOutputs(const std::string& descName, |
| 34 | unsigned int numExpectedIn, unsigned int numExpectedOut) const; |
| 35 | |
| 36 | |
| 37 | protected: |
| 38 | ~QueueDescriptor() = default; |
| 39 | QueueDescriptor() = default; |
| 40 | QueueDescriptor(QueueDescriptor const&) = default; |
| 41 | QueueDescriptor& operator=(QueueDescriptor const&) = default; |
| 42 | }; |
| 43 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 44 | // Base class for queue descriptors which contain parameters. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 45 | template <typename LayerDescriptor> |
| 46 | struct QueueDescriptorWithParameters : public QueueDescriptor |
| 47 | { |
| 48 | LayerDescriptor m_Parameters; |
| 49 | |
| 50 | protected: |
| 51 | ~QueueDescriptorWithParameters() = default; |
| 52 | QueueDescriptorWithParameters() = default; |
| 53 | QueueDescriptorWithParameters(QueueDescriptorWithParameters const&) = default; |
| 54 | QueueDescriptorWithParameters& operator=(QueueDescriptorWithParameters const&) = default; |
| 55 | }; |
| 56 | |
| 57 | struct MemCopyQueueDescriptor : QueueDescriptor |
| 58 | { |
| 59 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 60 | }; |
| 61 | |
| 62 | using InputQueueDescriptor = MemCopyQueueDescriptor; |
| 63 | using OutputQueueDescriptor = MemCopyQueueDescriptor; |
| 64 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 65 | // Softmax layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 66 | struct SoftmaxQueueDescriptor : QueueDescriptorWithParameters<SoftmaxDescriptor> |
| 67 | { |
| 68 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 69 | }; |
| 70 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 71 | // Splitter layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 72 | struct SplitterQueueDescriptor : QueueDescriptorWithParameters<ViewsDescriptor> |
| 73 | { |
| 74 | struct ViewOrigin |
| 75 | { |
| 76 | ViewOrigin() {} |
| 77 | ViewOrigin(std::vector<unsigned int> const& origin) : m_Origin(origin) {} |
| 78 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 79 | //View origin (size of the vector is the same as number of dimensions of the view). |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 80 | std::vector<unsigned int> m_Origin; |
| 81 | }; |
| 82 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 83 | //View defines a tensor that will be carved from the input tensor. |
| 84 | //View origins are stored here, the extents are defined by sizes of the output tensors. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 85 | std::vector<ViewOrigin> m_ViewOrigins; |
| 86 | |
| 87 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 88 | }; |
| 89 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 90 | // Merger layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 91 | struct MergerQueueDescriptor : QueueDescriptorWithParameters<OriginsDescriptor> |
| 92 | { |
| 93 | struct ViewOrigin |
| 94 | { |
| 95 | ViewOrigin() {} |
| 96 | ViewOrigin(const std::vector<unsigned int>& origin) : m_Origin(origin) {} |
| 97 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 98 | //View origin (size of the vector is the same as number of dimensions of the view). |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 99 | std::vector<unsigned int> m_Origin; |
| 100 | }; |
| 101 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 102 | //View defines a sub-area of the output tensor that will be filled with the corresponding input tensor. |
| 103 | //View origins are stored here, the extents are defined by sizes of the input tensors. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 104 | std::vector<ViewOrigin> m_ViewOrigins; |
| 105 | |
| 106 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 107 | }; |
| 108 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 109 | // Activation layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 110 | struct ActivationQueueDescriptor : QueueDescriptorWithParameters<ActivationDescriptor> |
| 111 | { |
| 112 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 113 | }; |
| 114 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 115 | // Fully connected layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 116 | struct FullyConnectedQueueDescriptor : QueueDescriptorWithParameters<FullyConnectedDescriptor> |
| 117 | { |
| 118 | FullyConnectedQueueDescriptor() |
| 119 | : m_Weight(nullptr) |
| 120 | , m_Bias(nullptr) |
| 121 | { |
| 122 | } |
| 123 | |
| 124 | const ConstCpuTensorHandle* m_Weight; |
| 125 | const ConstCpuTensorHandle* m_Bias; |
| 126 | |
| 127 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 128 | }; |
| 129 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 130 | // Permute layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 131 | struct PermuteQueueDescriptor : QueueDescriptorWithParameters<PermuteDescriptor> |
| 132 | { |
| 133 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 134 | }; |
| 135 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 136 | // Pooling 2D layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 137 | struct Pooling2dQueueDescriptor : QueueDescriptorWithParameters<Pooling2dDescriptor> |
| 138 | { |
| 139 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 140 | }; |
| 141 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 142 | // Convolution 2D layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 143 | struct Convolution2dQueueDescriptor : QueueDescriptorWithParameters<Convolution2dDescriptor> |
| 144 | { |
| 145 | Convolution2dQueueDescriptor() |
| 146 | : m_Weight(nullptr) |
| 147 | , m_Bias(nullptr) |
| 148 | { |
| 149 | } |
| 150 | |
| 151 | const ConstCpuTensorHandle* m_Weight; |
| 152 | const ConstCpuTensorHandle* m_Bias; |
| 153 | |
| 154 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 155 | }; |
| 156 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 157 | // Depthwise Convolution 2D layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 158 | struct DepthwiseConvolution2dQueueDescriptor : QueueDescriptorWithParameters<DepthwiseConvolution2dDescriptor> |
| 159 | { |
| 160 | DepthwiseConvolution2dQueueDescriptor() |
| 161 | : m_Weight(nullptr) |
| 162 | , m_Bias(nullptr) |
| 163 | { |
| 164 | } |
| 165 | |
| 166 | const ConstCpuTensorHandle* m_Weight; |
| 167 | const ConstCpuTensorHandle* m_Bias; |
| 168 | |
| 169 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 170 | }; |
| 171 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 172 | // Normalization layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 173 | struct NormalizationQueueDescriptor : QueueDescriptorWithParameters<NormalizationDescriptor> |
| 174 | { |
| 175 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 176 | }; |
| 177 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 178 | // Add layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 179 | struct AdditionQueueDescriptor : QueueDescriptor |
| 180 | { |
| 181 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 182 | }; |
| 183 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 184 | // Multiplication layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 185 | struct MultiplicationQueueDescriptor : QueueDescriptor |
| 186 | { |
| 187 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 188 | }; |
| 189 | |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 190 | // Division layer workload data. |
| 191 | struct DivisionQueueDescriptor : QueueDescriptor |
| 192 | { |
| 193 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 194 | }; |
| 195 | |
David Beck | c2044fe | 2018-09-05 15:00:38 +0100 | [diff] [blame] | 196 | // Subtraction layer workload data. |
| 197 | struct SubtractionQueueDescriptor : QueueDescriptor |
| 198 | { |
| 199 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 200 | }; |
| 201 | |
Nattapat Chaimanowong | 5a4304a | 2018-11-28 10:44:37 +0000 | [diff] [blame] | 202 | // Maximum layer workload data. |
| 203 | struct MaximumQueueDescriptor : QueueDescriptor |
| 204 | { |
| 205 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 206 | }; |
| 207 | |
narpra01 | a6bf912 | 2018-09-10 09:50:09 +0100 | [diff] [blame] | 208 | // Mean layer workload data. |
narpra01 | 32b9046 | 2018-09-13 11:07:48 +0100 | [diff] [blame] | 209 | struct MeanQueueDescriptor : QueueDescriptorWithParameters<MeanDescriptor> |
narpra01 | a6bf912 | 2018-09-10 09:50:09 +0100 | [diff] [blame] | 210 | { |
| 211 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 212 | }; |
| 213 | |
jimfly01 | 2c9322a | 2018-09-19 10:59:49 +0100 | [diff] [blame] | 214 | // Pad layer workload data |
| 215 | struct PadQueueDescriptor : QueueDescriptorWithParameters<PadDescriptor> |
| 216 | { |
| 217 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 218 | }; |
| 219 | |
FrancisMurtagh | 2099595 | 2018-12-17 12:11:36 +0000 | [diff] [blame] | 220 | // Equal layer workload data |
| 221 | struct EqualQueueDescriptor : QueueDescriptor |
| 222 | { |
| 223 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 224 | }; |
| 225 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 226 | // Batch norm layer workload data. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 227 | struct BatchNormalizationQueueDescriptor : QueueDescriptorWithParameters<BatchNormalizationDescriptor> |
| 228 | { |
| 229 | BatchNormalizationQueueDescriptor() |
| 230 | : m_Mean(nullptr) |
| 231 | , m_Variance(nullptr) |
| 232 | , m_Beta(nullptr) |
| 233 | , m_Gamma(nullptr) |
| 234 | { |
| 235 | } |
| 236 | |
| 237 | const ConstCpuTensorHandle* m_Mean; |
| 238 | const ConstCpuTensorHandle* m_Variance; |
| 239 | const ConstCpuTensorHandle* m_Beta; |
| 240 | const ConstCpuTensorHandle* m_Gamma; |
| 241 | |
| 242 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 243 | }; |
| 244 | |
| 245 | struct ResizeBilinearQueueDescriptor : QueueDescriptorWithParameters<ResizeBilinearDescriptor> |
| 246 | { |
| 247 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 248 | }; |
| 249 | |
| 250 | struct FakeQuantizationQueueDescriptor : QueueDescriptorWithParameters<FakeQuantizationDescriptor> |
| 251 | { |
| 252 | FakeQuantizationQueueDescriptor() |
| 253 | : m_Min(nullptr) |
| 254 | , m_Max(nullptr) |
| 255 | { |
| 256 | } |
| 257 | |
| 258 | const ConstCpuTensorHandle* m_Min; |
| 259 | const ConstCpuTensorHandle* m_Max; |
| 260 | |
| 261 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 262 | }; |
| 263 | |
Matteo Martincigh | bcd3c85 | 2018-09-28 14:14:12 +0100 | [diff] [blame] | 264 | struct L2NormalizationQueueDescriptor : QueueDescriptorWithParameters<L2NormalizationDescriptor> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 265 | { |
| 266 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 267 | }; |
| 268 | |
| 269 | struct ConstantQueueDescriptor : QueueDescriptor |
| 270 | { |
| 271 | ConstantQueueDescriptor() |
| 272 | : m_LayerOutput(nullptr) |
| 273 | { |
| 274 | } |
| 275 | |
| 276 | const ConstCpuTensorHandle* m_LayerOutput; |
| 277 | |
| 278 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 279 | }; |
| 280 | |
| 281 | struct ReshapeQueueDescriptor : QueueDescriptorWithParameters<ReshapeDescriptor> |
| 282 | { |
| 283 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 284 | }; |
| 285 | |
Nattapat Chaimanowong | 207ef9a | 2018-11-02 10:57:25 +0000 | [diff] [blame] | 286 | struct SpaceToBatchNdQueueDescriptor : QueueDescriptorWithParameters<SpaceToBatchNdDescriptor> |
| 287 | { |
| 288 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 289 | }; |
| 290 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 291 | struct FloorQueueDescriptor : QueueDescriptor |
| 292 | { |
| 293 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 294 | }; |
| 295 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 296 | struct LstmQueueDescriptor : QueueDescriptorWithParameters<LstmDescriptor> |
| 297 | { |
| 298 | LstmQueueDescriptor() |
| 299 | : m_InputToInputWeights(nullptr) |
| 300 | , m_InputToForgetWeights(nullptr) |
| 301 | , m_InputToCellWeights(nullptr) |
| 302 | , m_InputToOutputWeights(nullptr) |
| 303 | , m_RecurrentToInputWeights(nullptr) |
| 304 | , m_RecurrentToForgetWeights(nullptr) |
| 305 | , m_RecurrentToCellWeights(nullptr) |
| 306 | , m_RecurrentToOutputWeights(nullptr) |
| 307 | , m_CellToInputWeights(nullptr) |
| 308 | , m_CellToForgetWeights(nullptr) |
| 309 | , m_CellToOutputWeights(nullptr) |
| 310 | , m_InputGateBias(nullptr) |
| 311 | , m_ForgetGateBias(nullptr) |
| 312 | , m_CellBias(nullptr) |
| 313 | , m_OutputGateBias(nullptr) |
| 314 | , m_ProjectionWeights(nullptr) |
| 315 | , m_ProjectionBias(nullptr) |
| 316 | { |
| 317 | } |
| 318 | |
| 319 | const ConstCpuTensorHandle* m_InputToInputWeights; |
| 320 | const ConstCpuTensorHandle* m_InputToForgetWeights; |
| 321 | const ConstCpuTensorHandle* m_InputToCellWeights; |
| 322 | const ConstCpuTensorHandle* m_InputToOutputWeights; |
| 323 | const ConstCpuTensorHandle* m_RecurrentToInputWeights; |
| 324 | const ConstCpuTensorHandle* m_RecurrentToForgetWeights; |
| 325 | const ConstCpuTensorHandle* m_RecurrentToCellWeights; |
| 326 | const ConstCpuTensorHandle* m_RecurrentToOutputWeights; |
| 327 | const ConstCpuTensorHandle* m_CellToInputWeights; |
| 328 | const ConstCpuTensorHandle* m_CellToForgetWeights; |
| 329 | const ConstCpuTensorHandle* m_CellToOutputWeights; |
| 330 | const ConstCpuTensorHandle* m_InputGateBias; |
| 331 | const ConstCpuTensorHandle* m_ForgetGateBias; |
| 332 | const ConstCpuTensorHandle* m_CellBias; |
| 333 | const ConstCpuTensorHandle* m_OutputGateBias; |
| 334 | const ConstCpuTensorHandle* m_ProjectionWeights; |
| 335 | const ConstCpuTensorHandle* m_ProjectionBias; |
| 336 | |
| 337 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 338 | }; |
| 339 | |
| 340 | struct ConvertFp16ToFp32QueueDescriptor : QueueDescriptor |
| 341 | { |
| 342 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 343 | }; |
| 344 | |
| 345 | struct ConvertFp32ToFp16QueueDescriptor : QueueDescriptor |
| 346 | { |
| 347 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 348 | }; |
| 349 | |
Éanna Ó Catháin | 4e1e136 | 2018-11-12 11:36:34 +0000 | [diff] [blame] | 350 | struct BatchToSpaceNdQueueDescriptor : QueueDescriptorWithParameters<BatchToSpaceNdDescriptor> |
| 351 | { |
| 352 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 353 | }; |
Conor Kennedy | 430b5d8 | 2018-11-14 15:28:28 +0000 | [diff] [blame] | 354 | |
| 355 | struct StridedSliceQueueDescriptor : QueueDescriptorWithParameters<StridedSliceDescriptor> |
| 356 | { |
| 357 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 358 | }; |
| 359 | |
Éanna Ó Catháin | 20e5880 | 2018-12-04 10:29:06 +0000 | [diff] [blame] | 360 | // Minimum layer workload data. |
kevmay01 | 9053969 | 2018-11-29 08:40:19 +0000 | [diff] [blame] | 361 | struct MinimumQueueDescriptor : QueueDescriptor |
| 362 | { |
| 363 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 364 | }; |
| 365 | |
Matteo Martincigh | 59a950c | 2018-12-13 12:48:25 +0000 | [diff] [blame] | 366 | struct GreaterQueueDescriptor : QueueDescriptor |
| 367 | { |
| 368 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 369 | }; |
| 370 | |
Nattapat Chaimanowong | ac5aa1f | 2018-12-05 15:17:18 +0000 | [diff] [blame] | 371 | struct DebugQueueDescriptor : QueueDescriptorWithParameters<DebugDescriptor> |
Nattapat Chaimanowong | a9a1cf1 | 2018-12-03 16:06:49 +0000 | [diff] [blame] | 372 | { |
| 373 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 374 | }; |
| 375 | |
Mohamed Nour Abouelseoud | a1d3c6a | 2018-12-27 12:39:16 +0000 | [diff] [blame] | 376 | struct RsqrtQueueDescriptor : QueueDescriptor |
| 377 | { |
| 378 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 379 | }; |
| 380 | |
narpra01 | b89b05f | 2019-01-16 09:53:09 +0000 | [diff] [blame] | 381 | struct GatherQueueDescriptor : QueueDescriptor |
| 382 | { |
| 383 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 384 | }; |
| 385 | |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 386 | struct PreCompiledQueueDescriptor : QueueDescriptorWithParameters<PreCompiledDescriptor> |
| 387 | { |
| 388 | PreCompiledQueueDescriptor() |
| 389 | : m_PreCompiledObject(nullptr) |
| 390 | { |
| 391 | } |
| 392 | |
| 393 | std::shared_ptr<void> m_PreCompiledObject; |
| 394 | |
| 395 | void Validate(const WorkloadInfo& workloadInfo) const; |
| 396 | }; |
| 397 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 398 | } //namespace armnn |