X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2F_n_e_arithmetic_addition_kernel_8h_source.xhtml;h=c246f64d67e474163669816f1a30741e394330c6;hb=b3a371bc429d2ba45e56baaf239d8200c2662a74;hp=fd8c43c71c3fe468b389da5c0608f9ee2575201e;hpb=f45d5a9be1bf4d315a227b80617582b8eb4214d2;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/_n_e_arithmetic_addition_kernel_8h_source.xhtml b/documentation/_n_e_arithmetic_addition_kernel_8h_source.xhtml index fd8c43c..c246f64 100644 --- a/documentation/_n_e_arithmetic_addition_kernel_8h_source.xhtml +++ b/documentation/_n_e_arithmetic_addition_kernel_8h_source.xhtml @@ -40,7 +40,7 @@
Compute Library -  18.01 +  18.05
@@ -117,24 +117,27 @@ $(document).ready(function(){initNavTree('_n_e_arithmetic_addition_kernel_8h_sou
NEArithmeticAdditionKernel.h
-Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, 2017 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_NEARITHMETICADDITIONKERNEL_H__
25 #define __ARM_COMPUTE_NEARITHMETICADDITIONKERNEL_H__
26 
28 #include "arm_compute/core/Types.h"
29 
30 namespace arm_compute
31 {
32 class ITensor;
33 
36 {
37 public:
49  ~NEArithmeticAdditionKernel() = default;
50 
70  void configure(const ITensor *input1, const ITensor *input2, ITensor *output, ConvertPolicy policy);
80  static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy);
81 
82  // Inherited methods overridden:
83  void run(const Window &window, const ThreadInfo &info) override;
84 
85 private:
93  using AddFunction = void(const ITensor *input1, const ITensor *input2, ITensor *output, const Window &window);
95  AddFunction *_func;
96  const ITensor *_input1;
97  const ITensor *_input2;
98  ITensor *_output;
99 };
100 } // namespace arm_compute
101 #endif /*__ARM_COMPUTE_NEARITHMETICADDITIONKERNEL_H__ */
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-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  */
24 #ifndef __ARM_COMPUTE_NEARITHMETICADDITIONKERNEL_H__
25 #define __ARM_COMPUTE_NEARITHMETICADDITIONKERNEL_H__
26 
28 #include "arm_compute/core/Types.h"
29 
30 namespace arm_compute
31 {
32 class ITensor;
33 
36 {
37 public:
38  const char *name() const override
39  {
40  return "NEArithmeticAdditionKernel";
41  }
53  ~NEArithmeticAdditionKernel() = default;
54 
74  void configure(const ITensor *input1, const ITensor *input2, ITensor *output, ConvertPolicy policy);
84  static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy);
85 
86  // Inherited methods overridden:
87  void run(const Window &window, const ThreadInfo &info) override;
88  BorderSize border_size() const override;
89 
90 private:
98  using AddFunction = void(const ITensor *input1, const ITensor *input2, ITensor *output, const Window &window);
100  AddFunction *_func;
101  const ITensor *_input1;
102  const ITensor *_input2;
103  ITensor *_output;
104 };
105 } // namespace arm_compute
106 #endif /*__ARM_COMPUTE_NEARITHMETICADDITIONKERNEL_H__ */
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
NEArithmeticAdditionKernel & operator=(const NEArithmeticAdditionKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
+
const char * name() const override
Name of the kernel.
~NEArithmeticAdditionKernel()=default
Default destructor.
+
Container for 2D border size.
Definition: Types.h:291
Common interface for all kernels implemented in C++.
Definition: ICPPKernel.h:35
void configure(const ITensor *input1, const ITensor *input2, ITensor *output, ConvertPolicy policy)
Initialise the kernel's input, output and border mode.
-
Store the tensor's metadata.
Definition: ITensorInfo.h:39
+
Store the tensor's metadata.
Definition: ITensorInfo.h:40
NEArithmeticAdditionKernel()
Default constructor.
-
Status class.
Definition: Error.h:39
+
Status class.
Definition: Error.h:51
Interface for NEON tensor.
Definition: ITensor.h:36
src info() -> set_format(Format::S16)
-
This file contains all available output stages for GEMMLowp on OpenCL.
Definition: 01_library.dox:1
+
This file contains all available output stages for GEMMLowp on OpenCL.
Interface for the kernel to perform addition between two tensors.
- +
Information about executing thread and CPU.
Definition: CPPTypes.h:131
+
BorderSize border_size() const override
The size of the border for that kernel.
const Window & window() const
The maximum window the kernel can be executed on.
Describe a multidimensional execution window.
Definition: Window.h:39
-
ConvertPolicy
Policy to handle overflow.
Definition: Types.h:279
+
ConvertPolicy
Policy to handle overflow.
Definition: Types.h:381
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration of NEArithmeticAdditionKern...
@@ -142,7 +145,7 @@ $(document).ready(function(){initNavTree('_n_e_arithmetic_addition_kernel_8h_sou