xref: /aosp_15_r20/external/ComputeLibrary/arm_compute/graph/frontend/Types.h (revision c217d954acce2dbc11938adb493fc0abd69584f3)
1 /*
2  * Copyright (c) 2018-2019 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  */
24 #ifndef ARM_COMPUTE_GRAPH_STREAM_TYPES_H
25 #define ARM_COMPUTE_GRAPH_STREAM_TYPES_H
26 
27 #include "arm_compute/graph/Types.h"
28 
29 namespace arm_compute
30 {
31 namespace graph
32 {
33 namespace frontend
34 {
35 // Import types for graph
36 using graph::DataType;
37 using graph::DataLayout;
38 using graph::DataLayoutDimension;
39 using graph::TensorShape;
40 using graph::PermutationVector;
41 
42 using graph::ActivationLayerInfo;
43 using graph::EltwiseOperation;
44 using graph::FullyConnectedLayerInfo;
45 using graph::NormalizationLayerInfo;
46 using graph::NormType;
47 using graph::PadStrideInfo;
48 using graph::PoolingLayerInfo;
49 using graph::PoolingType;
50 using graph::Target;
51 using graph::ConvolutionMethod;
52 using graph::FastMathHint;
53 using graph::DepthwiseConvolutionMethod;
54 using graph::TensorDescriptor;
55 using graph::DimensionRoundingType;
56 using graph::GraphConfig;
57 using graph::InterpolationPolicy;
58 using graph::Size2D;
59 
60 /** Hints that can be passed to the stream to expose parameterization */
61 struct StreamHints
62 {
63     Target                     target_hint                       = { Target::UNSPECIFIED };                 /**< Target execution hint */
64     ConvolutionMethod          convolution_method_hint           = { ConvolutionMethod::Default };          /**< Convolution method hint */
65     DepthwiseConvolutionMethod depthwise_convolution_method_hint = { DepthwiseConvolutionMethod::Default }; /**< Depthwise Convolution method hint */
66     FastMathHint               fast_math_hint                    = { FastMathHint::Disabled };              /**< Fast math hint */
67 };
68 } // namespace frontend
69 } // namespace graph
70 } // namespace arm_compute
71 #endif /* ARM_COMPUTE_GRAPH_STREAM_TYPES_H */