Compute Library
 21.02
NEThreshold.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2021 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_NETHRESHOLD_H
25 #define ARM_COMPUTE_NETHRESHOLD_H
26 
28 #include "arm_compute/core/Types.h"
30 
31 #include <cstdint>
32 
33 namespace arm_compute
34 {
35 // Forward declarations
36 class ITensor;
37 class ITensorInfo;
38 
39 /** Basic function to run @ref NEThresholdKernel
40  *
41  * @deprecated This function is deprecated and is intended to be removed in 21.05 release
42  *
43 */
45 {
46 public:
47  /** Initialise the function's source, destination, thresholds and threshold type
48  *
49  * @param[in] input First tensor input. Data type supported: U8.
50  * @param[out] output Output tensor. Data type supported: U8.
51  * @param[in] info Threshold descriptor
52  */
53  void configure(const ITensor *input, ITensor *output, const ThresholdKernelInfo &info);
54  /** Static function to check if given info will lead to a valid configuration of @ref NEThreshold
55  *
56  * @param[in] input First tensor input. Data type supported: U8.
57  * @param[in] output Output tensor. Data type supported: U8.
58  * @param[in] info Threshold descriptor.
59  *
60  * @return A status, containing an error code in case of failure
61  */
62  static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ThresholdKernelInfo &info);
63 };
64 } // namespace arm_compute
65 #endif /*ARM_COMPUTE_NETHRESHOLD_H */
void configure(const ITensor *input, ITensor *output, const ThresholdKernelInfo &info)
Initialise the function&#39;s source, destination, thresholds and threshold type.
Definition: NEThreshold.cpp:32
Store the tensor&#39;s metadata.
Definition: ITensorInfo.h:40
Status class.
Definition: Error.h:52
Interface for Neon tensor.
Definition: ITensor.h:36
Copyright (c) 2017-2021 Arm Limited.
Basic interface for functions which have a single Neon kernel and no border.
Basic function to run NEThresholdKernel.
Definition: NEThreshold.h:44
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ThresholdKernelInfo &info)
Static function to check if given info will lead to a valid configuration of NEThreshold.
Definition: NEThreshold.cpp:39
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)