Compute Library
 21.11
Types.h
Go to the documentation of this file.
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 
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;
39 using graph::TensorShape;
41 
42 using graph::ActivationLayerInfo;
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;
54 using graph::TensorDescriptor;
56 using graph::GraphConfig;
58 using graph::Size2D;
59 
60 /** Hints that can be passed to the stream to expose parameterization */
62 {
63  Target target_hint = { Target::UNSPECIFIED }; /**< Target execution 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 */
InterpolationPolicy
Interpolation method.
Definition: Types.h:398
DepthwiseConvolutionMethod depthwise_convolution_method_hint
Depthwise Convolution method hint.
Definition: Types.h:65
EltwiseOperation
Supported Element-wise operations.
Definition: Types.h:109
Target target_hint
Target execution hint.
Definition: Types.h:63
DataLayoutDimension
[DataLayout enum definition]
Definition: Types.h:124
DimensionRoundingType
Dimension rounding type when down-scaling on CNNs.
Definition: Types.h:537
Strides PermutationVector
Permutation vector.
Definition: Types.h:51
Hints that can be passed to the stream to expose parameterization.
Definition: Types.h:61
Copyright (c) 2017-2021 Arm Limited.
Fast math disabled for Convolution layer.
DepthwiseConvolutionMethod
Supported Depthwise Convolution layer methods.
Definition: Types.h:135
FastMathHint
Enable or disable fast math for Convolution layer.
Definition: Types.h:143
FastMathHint fast_math_hint
Fast math hint.
Definition: Types.h:66
PoolingType
Available pooling types.
Definition: Types.h:544
ConvolutionMethod
Supported Convolution layer methods.
Definition: Types.h:126
Default approach using internal heuristics.
Default approach using internal heuristics.
DataType
Available data types.
Definition: Types.h:79
DataLayout
[DataLayout enum definition]
Definition: Types.h:113
NormType
The normalization type used for the normalization layer.
Definition: Types.h:511
ConvolutionMethod convolution_method_hint
Convolution method hint.
Definition: Types.h:64