X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2F_n_e_magnitude_phase_kernel_8h_source.xhtml;h=d9780bffee0c6ea64a69395c3d4d017a68b7519c;hb=HEAD;hp=315d72f661ee79d3869b00f75b3dbbcfa09dd650;hpb=67c8c91522e5be8156b77f57e63c0253535c902a;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/_n_e_magnitude_phase_kernel_8h_source.xhtml b/documentation/_n_e_magnitude_phase_kernel_8h_source.xhtml index 315d72f..d9780bf 100644 --- a/documentation/_n_e_magnitude_phase_kernel_8h_source.xhtml +++ b/documentation/_n_e_magnitude_phase_kernel_8h_source.xhtml @@ -40,7 +40,7 @@
Compute Library -  18.03 +  18.05
@@ -117,18 +117,18 @@ $(document).ready(function(){initNavTree('_n_e_magnitude_phase_kernel_8h_source.
NEMagnitudePhaseKernel.h
-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_NEMAGNITUDEPHASEKERNEL_H__
25 #define __ARM_COMPUTE_NEMAGNITUDEPHASEKERNEL_H__
26 
28 #include "arm_compute/core/Types.h"
29 
30 namespace arm_compute
31 {
32 class ITensor;
33 
35 template <MagnitudeType mag_type, PhaseType phase_type>
37 {
38 public:
39  const char *name() const override
40  {
41  return "NEMagnitudePhaseKernel";
42  }
46  ~NEMagnitudePhaseKernel() = default;
55 
65  void configure(const ITensor *gx, const ITensor *gy, ITensor *magnitude, ITensor *phase);
66 
67  // Inherited methods overridden:
68  void run(const Window &window, const ThreadInfo &info) override;
69 
70 private:
75  void magnitude(const Window &window);
80  void phase(const Window &window);
85  void magnitude_phase(const Window &window);
86 
87 private:
92  using MagnitudePhaseFunctionPtr = void (NEMagnitudePhaseKernel::*)(const Window &window);
94  MagnitudePhaseFunctionPtr _func;
95  const ITensor *_gx;
96  const ITensor *_gy;
97  ITensor *_magnitude;
98  ITensor *_phase;
99 };
100 
101 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
102 
103 template <MagnitudeType mag_type, PhaseType phase_type>
105 {
106 public:
107  const char *name() const override
108  {
109  return "NEMagnitudePhaseFP16Kernel";
110  }
114  ~NEMagnitudePhaseFP16Kernel() = default;
123 
133  void configure(const ITensor *gx, const ITensor *gy, ITensor *magnitude, ITensor *phase);
134 
135  // Inherited methods overridden:
136  void run(const Window &window, const ThreadInfo &info) override;
137 
138 private:
143  void magnitude(const Window &window);
148  void phase(const Window &window);
153  void magnitude_phase(const Window &window);
154 
159  using MagnitudePhaseFunctionPtr = void (NEMagnitudePhaseFP16Kernel::*)(const Window &window);
161  MagnitudePhaseFunctionPtr _func;
162  const ITensor *_gx;
163  const ITensor *_gy;
164  ITensor *_magnitude;
165  ITensor *_phase;
166 };
167 #else /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
168 template <MagnitudeType mag_type, PhaseType phase_type>
170 #endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
171 } // namespace arm_compute
172 #endif /* __ARM_COMPUTE_NEMAGNITUDEPHASEKERNEL_H__ */
NEMagnitudePhaseKernel()
Default constructor.
+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_NEMAGNITUDEPHASEKERNEL_H__
25 #define __ARM_COMPUTE_NEMAGNITUDEPHASEKERNEL_H__
26 
28 #include "arm_compute/core/Types.h"
29 
30 namespace arm_compute
31 {
32 class ITensor;
33 
35 template <MagnitudeType mag_type, PhaseType phase_type>
37 {
38 public:
39  const char *name() const override
40  {
41  return "NEMagnitudePhaseKernel";
42  }
46  ~NEMagnitudePhaseKernel() = default;
55 
65  void configure(const ITensor *gx, const ITensor *gy, ITensor *magnitude, ITensor *phase);
66 
67  // Inherited methods overridden:
68  void run(const Window &window, const ThreadInfo &info) override;
69 
70 private:
75  void magnitude(const Window &window);
80  void phase(const Window &window);
85  void magnitude_phase(const Window &window);
86 
87 private:
92  using MagnitudePhaseFunctionPtr = void (NEMagnitudePhaseKernel::*)(const Window &window);
94  MagnitudePhaseFunctionPtr _func;
95  const ITensor *_gx;
96  const ITensor *_gy;
97  ITensor *_magnitude;
98  ITensor *_phase;
99 };
100 
101 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
102 
103 template <MagnitudeType mag_type, PhaseType phase_type>
105 {
106 public:
107  const char *name() const override
108  {
109  return "NEMagnitudePhaseFP16Kernel";
110  }
114  ~NEMagnitudePhaseFP16Kernel() = default;
123 
133  void configure(const ITensor *gx, const ITensor *gy, ITensor *magnitude, ITensor *phase);
134 
135  // Inherited methods overridden:
136  void run(const Window &window, const ThreadInfo &info) override;
137 
138 private:
143  void magnitude(const Window &window);
148  void phase(const Window &window);
153  void magnitude_phase(const Window &window);
154 
159  using MagnitudePhaseFunctionPtr = void (NEMagnitudePhaseFP16Kernel::*)(const Window &window);
161  MagnitudePhaseFunctionPtr _func;
162  const ITensor *_gx;
163  const ITensor *_gy;
164  ITensor *_magnitude;
165  ITensor *_phase;
166 };
167 #else /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
168 
169 template <MagnitudeType mag_type, PhaseType phase_type>
171 #endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
172 } // namespace arm_compute
173 #endif /* __ARM_COMPUTE_NEMAGNITUDEPHASEKERNEL_H__ */
NEMagnitudePhaseKernel()
Default constructor.
const char * name() const override
Name of the kernel.
Common interface for all kernels implemented in C++.
Definition: ICPPKernel.h:35
NEMagnitudePhaseKernel & operator=(const NEMagnitudePhaseKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Template interface for the kernel to compute magnitude and phase.
-
NEMagnitudePhaseKernel< mag_type, phase_type > NEMagnitudePhaseFP16Kernel
+
NEMagnitudePhaseKernel< mag_type, phase_type > NEMagnitudePhaseFP16Kernel
Template interface for the kernel to compute magnitude and phase.
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.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
~NEMagnitudePhaseKernel()=default
Destructor.
- +
Information about executing thread and CPU.
Definition: CPPTypes.h:131
__kernel void magnitude_phase(__global uchar *gx_ptr, uint gx_stride_x, uint gx_step_x, uint gx_stride_y, uint gx_step_y, uint gx_offset_first_element_in_bytes, __global uchar *gy_ptr, uint gy_stride_x, uint gy_step_x, uint gy_stride_y, uint gy_step_y, uint gy_offset_first_element_in_bytes, __global uchar *magnitude_ptr, uint magnitude_stride_x, uint magnitude_step_x, uint magnitude_stride_y, uint magnitude_step_y, uint magnitude_offset_first_element_in_bytes, __global uchar *phase_ptr, uint phase_stride_x, uint phase_step_x, uint phase_stride_y, uint phase_step_y, uint phase_offset_first_element_in_bytes)
Calculate the magnitude and phase of given the gradients of an image.
void configure(const ITensor *gx, const ITensor *gy, ITensor *magnitude, ITensor *phase)
Initialise the kernel&#39;s input, output.
@@ -141,7 +141,7 @@ $(document).ready(function(){initNavTree('_n_e_magnitude_phase_kernel_8h_source.