X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2F_n_e_softmax_layer_kernel_8h_source.xhtml;h=3014c83f374d39092b10279555129b4dc7e354a4;hb=a437638028c216a03572593b9d4e3532df2a308d;hp=e91262b99207850e5290aac3be48adb284d3cf84;hpb=68a98dc29106a4c8c34e8cac542fe0bdad4ad531;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/_n_e_softmax_layer_kernel_8h_source.xhtml b/documentation/_n_e_softmax_layer_kernel_8h_source.xhtml index e91262b..3014c83 100644 --- a/documentation/_n_e_softmax_layer_kernel_8h_source.xhtml +++ b/documentation/_n_e_softmax_layer_kernel_8h_source.xhtml @@ -40,7 +40,7 @@
ARM Compute Library -  17.03.1 +  17.04
@@ -116,28 +116,30 @@ $(document).ready(function(){initNavTree('_n_e_softmax_layer_kernel_8h_source.xh
NESoftmaxLayerKernel.h
-Go to the documentation of this file.
1 /*
2  * Copyright (c) 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_NESOFTMAXLAYERKERNEL_H__
25 #define __ARM_COMPUTE_NESOFTMAXLAYERKERNEL_H__
26 
29 
30 namespace arm_compute
31 {
32 class ITensor;
33 
36 {
37 public:
39  NELogits1DMaxKernel() = default;
45  void configure(const ITensor *input, ITensor *output);
46 
47  // Inherited methods overridden:
48  void run(const Window &window) override;
49 };
50 
53 {
54 public:
66  ~NELogits1DShiftExpSumKernel() = default;
67 
75  void configure(const ITensor *input, const ITensor *max, ITensor *output, ITensor *sum);
76 
77  // Inherited methods overridden:
78  void run(const Window &window) override;
79 
80 private:
81  const ITensor *_input;
82  const ITensor *_max;
83  ITensor *_output;
84  ITensor *_sum;
85 };
86 
89 {
90 public:
102  ~NELogits1DNormKernel() = default;
103 
110  void configure(const ITensor *input, const ITensor *sum, ITensor *output);
111 
112  // Inherited methods overridden:
113  void run(const Window &window) override;
114 
115 private:
116  const ITensor *_input;
117  const ITensor *_sum;
118  ITensor *_output;
119 };
120 }
121 #endif /*__ARM_COMPUTE_NESOFTMAXLAYERKERNEL_H__ */
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 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_NESOFTMAXLAYERKERNEL_H__
25 #define __ARM_COMPUTE_NESOFTMAXLAYERKERNEL_H__
26 
29 
30 namespace arm_compute
31 {
32 class ITensor;
33 
36 {
37 public:
45  void configure(const ITensor *input, ITensor *output);
46 
47  // Inherited methods overridden:
48  void run(const Window &window) override;
49  BorderSize border_size() const override;
50 
51 private:
52  BorderSize _border_size;
53 };
54 
57 {
58 public:
70  ~NELogits1DShiftExpSumKernel() = default;
71 
79  void configure(const ITensor *input, const ITensor *max, ITensor *output, ITensor *sum);
80 
81  // Inherited methods overridden:
82  void run(const Window &window) override;
83  BorderSize border_size() const override;
84 
85 private:
86  const ITensor *_input;
87  const ITensor *_max;
88  ITensor *_output;
89  ITensor *_sum;
90  BorderSize _border_size;
91 };
92 
95 {
96 public:
100  NELogits1DNormKernel(const NELogits1DNormKernel &) = delete;
108  ~NELogits1DNormKernel() = default;
109 
116  void configure(const ITensor *input, const ITensor *sum, ITensor *output);
117 
118  // Inherited methods overridden:
119  void run(const Window &window) override;
120 
121 private:
122  const ITensor *_input;
123  const ITensor *_sum;
124  ITensor *_output;
125 };
126 }
127 #endif /*__ARM_COMPUTE_NESOFTMAXLAYERKERNEL_H__ */
+
Container for 2D border size.
Definition: Types.h:116
Common interface for all kernels implemented in C++.
Definition: ICPPKernel.h:34
-
Interface for shifting the logits values around the max value and exponentiating the result...
+
Interface for shifting the logits values around the max value and exponentiating the result...
+
NELogits1DMaxKernel()
Default constructor.
Interface for simple NEON kernels having 1 tensor input and 1 tensor output.
Interface for NEON tensor.
Definition: ITensor.h:36
Interface for the identifying the max value of 1D Logits.
void configure(const ITensor *input, ITensor *output)
Set the input and output tensors.
void run(const Window &window) override
Execute the kernel on the passed window.
+
BorderSize border_size() const override
The size of the border for that kernel.
ICPPSimpleKernel & operator=(const ICPPSimpleKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
const Window & window() const
The maximum window the kernel can be executed on.
Describe a multidimensional execution window.
Definition: Window.h:39
-
Interface for calculating the final step of the Softmax Layer where each logit value is multiplied by...
-
NELogits1DMaxKernel()=default
Default constructor.
+
Interface for calculating the final step of the Softmax Layer where each logit value is multiplied by...