blob: 47893613c7693659290da4d89b60505b90906089 [file] [log] [blame]
Georgios Pinitasd8734b52017-12-22 15:27:52 +00001/*
2 * Copyright (c) 2018 ARM Limited.
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 */
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010024#ifndef __ARM_COMPUTE_GRAPH_STREAM_TYPES_H__
25#define __ARM_COMPUTE_GRAPH_STREAM_TYPES_H__
Georgios Pinitasd8734b52017-12-22 15:27:52 +000026
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010027#include "arm_compute/graph/Types.h"
Georgios Pinitasd8734b52017-12-22 15:27:52 +000028
29namespace arm_compute
30{
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010031namespace graph
Georgios Pinitasd8734b52017-12-22 15:27:52 +000032{
33namespace frontend
34{
35// Import types for graph
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010036using graph::DataType;
Georgios Pinitascac13b12018-04-27 19:07:19 +010037using graph::DataLayout;
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010038using graph::TensorShape;
Georgios Pinitasd8734b52017-12-22 15:27:52 +000039
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010040using graph::ActivationLayerInfo;
41using graph::NormalizationLayerInfo;
42using graph::NormType;
43using graph::PadStrideInfo;
44using graph::PoolingLayerInfo;
45using graph::PoolingType;
46using graph::Target;
47using graph::ConvolutionMethod;
Giorgio Arena59631a12018-05-02 13:59:04 +010048using graph::FastMathHint;
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010049using graph::DepthwiseConvolutionMethod;
50using graph::TensorDescriptor;
51using graph::DimensionRoundingType;
52using graph::GraphConfig;
Georgios Pinitasd8734b52017-12-22 15:27:52 +000053
54/** Branch layer merging method */
55enum class BranchMergeMethod
56{
57 DEPTH_CONCATENATE, /**< Concatenate across depth */
58 ADD /**< Adds the results of each stream */
59};
60
61/** Hints that can be passed to the stream to expose parameterization */
62struct StreamHints
63{
64 Target target_hint = { Target::UNSPECIFIED }; /**< Target execution hint */
65 ConvolutionMethod convolution_method_hint = { ConvolutionMethod::DEFAULT }; /**< Convolution method hint */
66 DepthwiseConvolutionMethod depthwise_convolution_method_hint = { DepthwiseConvolutionMethod::DEFAULT }; /**< Depthwise Convolution method hint */
Giorgio Arena59631a12018-05-02 13:59:04 +010067 FastMathHint fast_math_hint = { FastMathHint::DISABLED }; /**< Fast math hint */
Georgios Pinitasd8734b52017-12-22 15:27:52 +000068};
69} // namespace frontend
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010070} // namespace graph
Georgios Pinitasd8734b52017-12-22 15:27:52 +000071} // namespace arm_compute
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010072#endif /* __ARM_COMPUTE_GRAPH_STREAM_TYPES_H__ */