Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 1 | /* |
SiCong Li | 4841c97 | 2021-02-03 12:17:35 +0000 | [diff] [blame] | 2 | * Copyright (c) 2018-2021 Arm Limited. |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | * of this software and associated documentation files (the "Software"), to |
| 8 | * deal in the Software without restriction, including without limitation the |
| 9 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 10 | * sell copies of the Software, and to permit persons to whom the Software is |
| 11 | * furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included in all |
| 14 | * copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | * SOFTWARE. |
| 23 | */ |
Michalis Spyrou | f464337 | 2019-11-29 16:17:13 +0000 | [diff] [blame] | 24 | #ifndef ARM_COMPUTE_GRAPH_TYPES_H |
| 25 | #define ARM_COMPUTE_GRAPH_TYPES_H |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 26 | |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 27 | #include "arm_compute/core/Error.h" |
Georgios Pinitas | 102b0ce | 2020-02-13 17:59:09 +0000 | [diff] [blame] | 28 | #include "arm_compute/core/PixelValue.h" |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 29 | #include "arm_compute/core/Types.h" |
Vidhya Sudhan Loganathan | 050471e | 2019-04-25 09:27:24 +0100 | [diff] [blame] | 30 | #include "arm_compute/runtime/CL/CLTunerTypes.h" |
Michalis Spyrou | 402740d | 2021-04-20 11:26:21 +0100 | [diff] [blame] | 31 | #include "arm_compute/runtime/CL/CLTypes.h" |
Georgios Pinitas | 7d3d1b9 | 2017-10-12 17:34:20 +0100 | [diff] [blame] | 32 | |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 33 | #include <limits> |
| 34 | #include <string> |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 35 | |
| 36 | namespace arm_compute |
| 37 | { |
| 38 | namespace graph |
| 39 | { |
Vidhya Sudhan Loganathan | 050471e | 2019-04-25 09:27:24 +0100 | [diff] [blame] | 40 | using arm_compute::CLTunerMode; |
Michalis Spyrou | 402740d | 2021-04-20 11:26:21 +0100 | [diff] [blame] | 41 | using arm_compute::CLBackendType; |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 42 | using arm_compute::Status; |
| 43 | |
Georgios Pinitas | e2c82fe | 2017-10-02 18:51:47 +0100 | [diff] [blame] | 44 | using arm_compute::Coordinates; |
| 45 | using arm_compute::DataType; |
Georgios Pinitas | cac13b1 | 2018-04-27 19:07:19 +0100 | [diff] [blame] | 46 | using arm_compute::DataLayout; |
| 47 | using arm_compute::DataLayoutDimension; |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 48 | using arm_compute::TensorShape; |
| 49 | using arm_compute::Size2D; |
Georgios Pinitas | 57c4824 | 2018-08-02 13:41:49 +0100 | [diff] [blame] | 50 | using arm_compute::PermutationVector; |
Georgios Pinitas | 102b0ce | 2020-02-13 17:59:09 +0000 | [diff] [blame] | 51 | using arm_compute::PixelValue; |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 52 | |
| 53 | using arm_compute::ActivationLayerInfo; |
Isabella Gottardi | 7234ed8 | 2018-11-27 08:51:10 +0000 | [diff] [blame] | 54 | using arm_compute::DetectionOutputLayerInfo; |
Isabella Gottardi | a7acb3c | 2019-01-08 13:48:44 +0000 | [diff] [blame] | 55 | using arm_compute::DetectionPostProcessLayerInfo; |
Georgios Pinitas | 6f669f0 | 2017-09-26 12:32:57 +0100 | [diff] [blame] | 56 | using arm_compute::NormType; |
| 57 | using arm_compute::NormalizationLayerInfo; |
Georgios Pinitas | c55cef1 | 2018-08-01 15:24:18 +0100 | [diff] [blame] | 58 | using arm_compute::FullyConnectedLayerInfo; |
Georgios Pinitas | e2c82fe | 2017-10-02 18:51:47 +0100 | [diff] [blame] | 59 | using arm_compute::PadStrideInfo; |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 60 | using arm_compute::PoolingLayerInfo; |
| 61 | using arm_compute::PoolingType; |
Pablo Tello | 3252143 | 2018-11-15 14:43:10 +0000 | [diff] [blame] | 62 | using arm_compute::PriorBoxLayerInfo; |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 63 | using arm_compute::DimensionRoundingType; |
Georgios Pinitas | 087eaf6 | 2018-05-16 15:52:35 +0100 | [diff] [blame] | 64 | using arm_compute::InterpolationPolicy; |
Sheri Zhang | fb22803 | 2021-11-02 10:45:07 +0000 | [diff] [blame] | 65 | using arm_compute::experimental::PostOpType; |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 66 | |
Georgios Pinitas | 54c92fd | 2018-11-05 12:16:15 +0000 | [diff] [blame] | 67 | using GraphID = unsigned int; |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 68 | using TensorID = unsigned int; |
| 69 | using NodeID = unsigned int; |
| 70 | using EdgeID = unsigned int; |
| 71 | using Activation = arm_compute::ActivationLayerInfo::ActivationFunction; |
Georgios Pinitas | 7d3d1b9 | 2017-10-12 17:34:20 +0100 | [diff] [blame] | 72 | |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 73 | /**< Constant TensorID specifying an equivalent of null tensor */ |
| 74 | constexpr TensorID NullTensorID = std::numeric_limits<TensorID>::max(); |
| 75 | /**< Constant NodeID specifying an equivalent of null node */ |
| 76 | constexpr NodeID EmptyNodeID = std::numeric_limits<NodeID>::max(); |
| 77 | /**< Constant EdgeID specifying an equivalent of null edge */ |
| 78 | constexpr EdgeID EmptyEdgeID = std::numeric_limits<EdgeID>::max(); |
| 79 | |
| 80 | // Forward declarations |
Georgios Pinitas | 879d131 | 2019-09-30 13:25:53 +0100 | [diff] [blame] | 81 | struct TensorDescriptor; |
SiCongLi | f466d75 | 2021-03-01 15:26:18 +0000 | [diff] [blame] | 82 | |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 83 | /** Graph configuration structure */ |
| 84 | struct GraphConfig |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 85 | { |
Michalis Spyrou | 402740d | 2021-04-20 11:26:21 +0100 | [diff] [blame] | 86 | bool use_function_memory_manager{ true }; /**< Use a memory manager to manage per-function auxilary memory */ |
| 87 | bool use_function_weights_manager{ true }; /**< Use a weights manager to manage transformed weights */ |
| 88 | bool use_transition_memory_manager{ true }; /**< Use a memory manager to manager transition buffer memory */ |
| 89 | bool use_tuner{ false }; /**< Use a tuner in tunable backends */ |
| 90 | bool use_synthetic_type{ false }; /**< Convert graph to a synthetic graph for a data type */ |
| 91 | DataType synthetic_type{ DataType::QASYMM8 }; /**< The data type of the synthetic graph */ |
| 92 | CLTunerMode tuner_mode{ CLTunerMode::EXHAUSTIVE }; /**< Tuner mode to be used by the CL tuner */ |
| 93 | int num_threads{ -1 }; /**< Number of threads to use (thread capable backends), if 0 the backend will auto-initialize, if -1 the backend will stay as it is. */ |
| 94 | std::string tuner_file{ "acl_tuner.csv" }; /**< File to load/store tuning values from */ |
| 95 | std::string mlgo_file{ "heuristics.mlgo" }; /**< Filename to load MLGO heuristics from */ |
| 96 | CLBackendType backend_type{ CLBackendType::Native }; /**< CL backend type to use */ |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 97 | }; |
| 98 | |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 99 | /**< Device target types */ |
| 100 | enum class Target |
| 101 | { |
| 102 | UNSPECIFIED, /**< Unspecified Target */ |
Michele Di Giorgio | 33f41fa | 2021-03-09 14:09:08 +0000 | [diff] [blame] | 103 | NEON, /**< Arm® Neon™ capable target device */ |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 104 | CL, /**< OpenCL capable target device */ |
Michalis Spyrou | 402740d | 2021-04-20 11:26:21 +0100 | [diff] [blame] | 105 | CLVK, /**< CLVK capable target device */ |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 106 | }; |
| 107 | |
| 108 | /** Supported Element-wise operations */ |
| 109 | enum class EltwiseOperation |
| 110 | { |
Georgios Pinitas | e222055 | 2018-07-20 13:23:44 +0100 | [diff] [blame] | 111 | Add, /**< Arithmetic addition */ |
| 112 | Sub, /**< Arithmetic subtraction */ |
Sheri Zhang | 16dddd2 | 2020-05-27 15:03:48 +0100 | [diff] [blame] | 113 | Mul, /**< Arithmetic multiplication */ |
thecha01 | f8e3584 | 2020-07-28 17:28:17 +0100 | [diff] [blame] | 114 | Max, /**< Arithmetic maximum */ |
Alessandro Navone | 6413e49 | 2021-02-02 11:39:05 +0000 | [diff] [blame] | 115 | Div, /**< Arithmetic division */ |
Sheri Zhang | 1d35927 | 2021-06-10 13:56:11 +0100 | [diff] [blame] | 116 | Min, /**< Arithmetic minimum */ |
Sheri Zhang | 16dddd2 | 2020-05-27 15:03:48 +0100 | [diff] [blame] | 117 | }; |
| 118 | |
| 119 | /** Supported Unary Element-wise operations */ |
| 120 | enum class UnaryEltwiseOperation |
| 121 | { |
| 122 | Exp /**< Exp */ |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 123 | }; |
| 124 | |
| 125 | /** Supported Convolution layer methods */ |
| 126 | enum class ConvolutionMethod |
| 127 | { |
Georgios Pinitas | e222055 | 2018-07-20 13:23:44 +0100 | [diff] [blame] | 128 | Default, /**< Default approach using internal heuristics */ |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 129 | GEMM, /**< GEMM based convolution */ |
Georgios Pinitas | e222055 | 2018-07-20 13:23:44 +0100 | [diff] [blame] | 130 | Direct, /**< Deep direct convolution */ |
| 131 | Winograd /**< Winograd based convolution */ |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 132 | }; |
| 133 | |
| 134 | /** Supported Depthwise Convolution layer methods */ |
| 135 | enum class DepthwiseConvolutionMethod |
| 136 | { |
Georgios Pinitas | e222055 | 2018-07-20 13:23:44 +0100 | [diff] [blame] | 137 | Default, /**< Default approach using internal heuristics */ |
| 138 | GEMV, /**< Generic GEMV based depthwise convolution */ |
| 139 | Optimized3x3, /**< Optimized 3x3 direct depthwise convolution */ |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 140 | }; |
| 141 | |
Giorgio Arena | 59631a1 | 2018-05-02 13:59:04 +0100 | [diff] [blame] | 142 | /** Enable or disable fast math for Convolution layer */ |
| 143 | enum class FastMathHint |
| 144 | { |
Georgios Pinitas | e222055 | 2018-07-20 13:23:44 +0100 | [diff] [blame] | 145 | Enabled, /**< Fast math enabled for Convolution layer */ |
| 146 | Disabled, /**< Fast math disabled for Convolution layer */ |
Giorgio Arena | 59631a1 | 2018-05-02 13:59:04 +0100 | [diff] [blame] | 147 | }; |
| 148 | |
Sheri Zhang | fb22803 | 2021-11-02 10:45:07 +0000 | [diff] [blame] | 149 | /** Convolution post operator info */ |
| 150 | class ConvPostOpInfo |
| 151 | { |
| 152 | public: |
| 153 | /** Returns post op type |
| 154 | * |
| 155 | * @return Post op type |
| 156 | */ |
| 157 | virtual PostOpType type() const = 0; |
| 158 | virtual ~ConvPostOpInfo() |
| 159 | { |
| 160 | } |
| 161 | }; |
| 162 | |
| 163 | class ConvPostOpInfoActivation : public ConvPostOpInfo |
| 164 | { |
| 165 | public: |
| 166 | ConvPostOpInfoActivation(const ActivationLayerInfo &act) |
| 167 | : _act(act) |
| 168 | { |
| 169 | } |
| 170 | ~ConvPostOpInfoActivation() override |
| 171 | { |
| 172 | } |
| 173 | PostOpType type() const override |
| 174 | { |
| 175 | return PostOpType::Activation; |
| 176 | } |
| 177 | ActivationLayerInfo _act; |
| 178 | }; |
| 179 | |
| 180 | class ConvPostOpInfoEltwiseAdd : public ConvPostOpInfo |
| 181 | { |
| 182 | public: |
| 183 | ConvPostOpInfoEltwiseAdd(int arg_pos, const ConvertPolicy &policy) |
| 184 | : _prev_op_dst_pos(arg_pos), _policy(policy) |
| 185 | { |
| 186 | } |
| 187 | PostOpType type() const override |
| 188 | { |
| 189 | return PostOpType::Eltwise_Add; |
| 190 | } |
| 191 | ~ConvPostOpInfoEltwiseAdd() override |
| 192 | { |
| 193 | } |
| 194 | int _prev_op_dst_pos; |
| 195 | ConvertPolicy _policy; |
| 196 | }; |
| 197 | |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 198 | /** Supported nodes */ |
| 199 | enum class NodeType |
Georgios Pinitas | 407c3e6 | 2017-10-25 18:26:46 +0100 | [diff] [blame] | 200 | { |
| 201 | ActivationLayer, |
thecha01 | e8f05da | 2020-08-24 17:21:41 +0100 | [diff] [blame] | 202 | ArgMinMaxLayer, |
Georgios Pinitas | 407c3e6 | 2017-10-25 18:26:46 +0100 | [diff] [blame] | 203 | BatchNormalizationLayer, |
Manuel Bottini | d2048ce | 2018-10-23 17:00:42 +0100 | [diff] [blame] | 204 | BoundingBoxTransformLayer, |
Georgios Pinitas | 087eaf6 | 2018-05-16 15:52:35 +0100 | [diff] [blame] | 205 | ChannelShuffleLayer, |
Georgios Pinitas | e222055 | 2018-07-20 13:23:44 +0100 | [diff] [blame] | 206 | ConcatenateLayer, |
Georgios Pinitas | 407c3e6 | 2017-10-25 18:26:46 +0100 | [diff] [blame] | 207 | ConvolutionLayer, |
Georgios Pinitas | 087eaf6 | 2018-05-16 15:52:35 +0100 | [diff] [blame] | 208 | DeconvolutionLayer, |
thecha01 | 0a05e6a | 2020-08-28 18:40:38 +0100 | [diff] [blame] | 209 | DepthToSpaceLayer, |
Michalis Spyrou | 7bfe4c5 | 2017-11-24 09:54:20 +0000 | [diff] [blame] | 210 | DepthwiseConvolutionLayer, |
Isabella Gottardi | cd4e9ab | 2019-11-05 17:50:27 +0000 | [diff] [blame] | 211 | DequantizationLayer, |
Isabella Gottardi | 7234ed8 | 2018-11-27 08:51:10 +0000 | [diff] [blame] | 212 | DetectionOutputLayer, |
Isabella Gottardi | a7acb3c | 2019-01-08 13:48:44 +0000 | [diff] [blame] | 213 | DetectionPostProcessLayer, |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 214 | EltwiseLayer, |
Michalis Spyrou | 27c9efb | 2017-10-09 15:46:30 +0100 | [diff] [blame] | 215 | FlattenLayer, |
Georgios Pinitas | 407c3e6 | 2017-10-25 18:26:46 +0100 | [diff] [blame] | 216 | FullyConnectedLayer, |
giuros01 | acce504 | 2019-02-21 17:32:34 +0000 | [diff] [blame] | 217 | FusedConvolutionBatchNormalizationLayer, |
Sheri Zhang | fb22803 | 2021-11-02 10:45:07 +0000 | [diff] [blame] | 218 | FusedConvolutionWithPostOp, |
Manuel Bottini | bffb41e | 2019-06-20 16:00:27 +0100 | [diff] [blame] | 219 | FusedDepthwiseConvolutionBatchNormalizationLayer, |
Manuel Bottini | 5209be5 | 2019-02-13 16:34:56 +0000 | [diff] [blame] | 220 | GenerateProposalsLayer, |
thecha01 | 3603aff | 2020-09-01 14:52:38 +0100 | [diff] [blame] | 221 | L2NormalizeLayer, |
Georgios Pinitas | 407c3e6 | 2017-10-25 18:26:46 +0100 | [diff] [blame] | 222 | NormalizationLayer, |
Michele Di Giorgio | 555d110 | 2018-09-12 13:51:59 +0100 | [diff] [blame] | 223 | NormalizePlanarYUVLayer, |
Michele Di Giorgio | 4bb1733 | 2018-09-26 13:56:51 +0100 | [diff] [blame] | 224 | PadLayer, |
Georgios Pinitas | 57c4824 | 2018-08-02 13:41:49 +0100 | [diff] [blame] | 225 | PermuteLayer, |
Georgios Pinitas | 407c3e6 | 2017-10-25 18:26:46 +0100 | [diff] [blame] | 226 | PoolingLayer, |
Georgios Pinitas | f8c4749 | 2020-02-04 17:39:59 +0000 | [diff] [blame] | 227 | PReluLayer, |
Giorgio Arena | 6e9d0e0 | 2020-01-03 15:02:04 +0000 | [diff] [blame] | 228 | PrintLayer, |
Pablo Tello | 3252143 | 2018-11-15 14:43:10 +0000 | [diff] [blame] | 229 | PriorBoxLayer, |
Isabella Gottardi | 3db1ba9 | 2019-05-17 12:35:20 +0100 | [diff] [blame] | 230 | QuantizationLayer, |
thecha01 | d64444b | 2020-09-07 14:50:21 +0100 | [diff] [blame] | 231 | ReductionOperationLayer, |
Gian Marco Iodice | 23e2479 | 2018-09-07 15:32:14 +0100 | [diff] [blame] | 232 | ReorgLayer, |
Michalis Spyrou | 27c9efb | 2017-10-09 15:46:30 +0100 | [diff] [blame] | 233 | ReshapeLayer, |
Georgios Pinitas | 087eaf6 | 2018-05-16 15:52:35 +0100 | [diff] [blame] | 234 | ResizeLayer, |
Manuel Bottini | 3f9d4d7 | 2018-10-19 14:04:42 +0100 | [diff] [blame] | 235 | ROIAlignLayer, |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 236 | SoftmaxLayer, |
Michele Di Giorgio | c30b668 | 2018-09-12 17:44:08 +0100 | [diff] [blame] | 237 | SliceLayer, |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 238 | SplitLayer, |
Michele Di Giorgio | ec69975 | 2019-03-22 15:25:32 +0000 | [diff] [blame] | 239 | StackLayer, |
thecha01 | 2bfadd9 | 2020-08-12 17:25:51 +0100 | [diff] [blame] | 240 | StridedSliceLayer, |
Michalis Spyrou | 4e1c3f3 | 2018-09-20 17:14:03 +0100 | [diff] [blame] | 241 | UpsampleLayer, |
Sheri Zhang | 16dddd2 | 2020-05-27 15:03:48 +0100 | [diff] [blame] | 242 | UnaryEltwiseLayer, |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 243 | |
| 244 | Input, |
| 245 | Output, |
| 246 | Const, |
Georgios Pinitas | 087eaf6 | 2018-05-16 15:52:35 +0100 | [diff] [blame] | 247 | |
| 248 | Dummy |
Georgios Pinitas | 407c3e6 | 2017-10-25 18:26:46 +0100 | [diff] [blame] | 249 | }; |
| 250 | |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 251 | /** Backend Memory Manager affinity **/ |
| 252 | enum class MemoryManagerAffinity |
Georgios Pinitas | e2c82fe | 2017-10-02 18:51:47 +0100 | [diff] [blame] | 253 | { |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 254 | Buffer, /**< Affinity at buffer level */ |
| 255 | Offset /**< Affinity at offset level */ |
| 256 | }; |
| 257 | |
| 258 | /** NodeID-index struct |
| 259 | * |
| 260 | * Used to describe connections |
| 261 | */ |
| 262 | struct NodeIdxPair |
| 263 | { |
| 264 | NodeID node_id; /**< Node ID */ |
| 265 | size_t index; /**< Index */ |
| 266 | }; |
| 267 | |
| 268 | /** Common node parameters */ |
| 269 | struct NodeParams |
| 270 | { |
| 271 | std::string name; /**< Node name */ |
| 272 | Target target; /**< Node target */ |
Georgios Pinitas | e2c82fe | 2017-10-02 18:51:47 +0100 | [diff] [blame] | 273 | }; |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 274 | } // namespace graph |
| 275 | } // namespace arm_compute |
Michalis Spyrou | f464337 | 2019-11-29 16:17:13 +0000 | [diff] [blame] | 276 | #endif /* ARM_COMPUTE_GRAPH_TYPES_H */ |