blob: 8f6312f31811433ab808506d1d422a713d45e9df [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 Pinitas57c48242018-08-02 13:41:49 +010039using graph::PermutationVector;
Georgios Pinitasd8734b52017-12-22 15:27:52 +000040
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010041using graph::ActivationLayerInfo;
42using graph::NormalizationLayerInfo;
43using graph::NormType;
44using graph::PadStrideInfo;
45using graph::PoolingLayerInfo;
46using graph::PoolingType;
47using graph::Target;
48using graph::ConvolutionMethod;
Giorgio Arena59631a12018-05-02 13:59:04 +010049using graph::FastMathHint;
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010050using graph::DepthwiseConvolutionMethod;
51using graph::TensorDescriptor;
52using graph::DimensionRoundingType;
53using graph::GraphConfig;
Georgios Pinitas087eaf62018-05-16 15:52:35 +010054using graph::InterpolationPolicy;
55using graph::Size2D;
Georgios Pinitasd8734b52017-12-22 15:27:52 +000056
57/** Branch layer merging method */
58enum class BranchMergeMethod
59{
60 DEPTH_CONCATENATE, /**< Concatenate across depth */
61 ADD /**< Adds the results of each stream */
62};
63
64/** Hints that can be passed to the stream to expose parameterization */
65struct StreamHints
66{
67 Target target_hint = { Target::UNSPECIFIED }; /**< Target execution hint */
Georgios Pinitase2220552018-07-20 13:23:44 +010068 ConvolutionMethod convolution_method_hint = { ConvolutionMethod::Default }; /**< Convolution method hint */
69 DepthwiseConvolutionMethod depthwise_convolution_method_hint = { DepthwiseConvolutionMethod::Default }; /**< Depthwise Convolution method hint */
70 FastMathHint fast_math_hint = { FastMathHint::Disabled }; /**< Fast math hint */
Georgios Pinitasd8734b52017-12-22 15:27:52 +000071};
72} // namespace frontend
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010073} // namespace graph
Georgios Pinitasd8734b52017-12-22 15:27:52 +000074} // namespace arm_compute
Georgios Pinitasd9eb2752018-04-03 13:44:29 +010075#endif /* __ARM_COMPUTE_GRAPH_STREAM_TYPES_H__ */