• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 
25 #include "arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h"
26 
27 namespace arm_compute
28 {
29 namespace experimental
30 {
31 namespace dynamic_fusion
32 {
output_width(int32_t output_width)33 ResizeAttributes &ResizeAttributes::output_width(int32_t output_width)
34 {
35     _output_width = output_width;
36     return *this;
37 }
38 
output_width() const39 int32_t ResizeAttributes::output_width() const
40 {
41     return _output_width;
42 }
43 
output_height(int32_t output_height)44 ResizeAttributes &ResizeAttributes::output_height(int32_t output_height)
45 {
46     _output_height = output_height;
47     return *this;
48 }
49 
output_height() const50 int32_t ResizeAttributes::output_height() const
51 {
52     return _output_height;
53 }
54 
interpolation_policy(InterpolationPolicy interpolation_policy)55 ResizeAttributes &ResizeAttributes::interpolation_policy(InterpolationPolicy interpolation_policy)
56 {
57     _interpolation_policy = interpolation_policy;
58     return *this;
59 }
60 
interpolation_policy() const61 InterpolationPolicy ResizeAttributes::interpolation_policy() const
62 {
63     return _interpolation_policy;
64 }
65 
sampling_policy(SamplingPolicy sampling_policy)66 ResizeAttributes &ResizeAttributes::sampling_policy(SamplingPolicy sampling_policy)
67 {
68     _sampling_policy = sampling_policy;
69     return *this;
70 }
71 
sampling_policy() const72 SamplingPolicy ResizeAttributes::sampling_policy() const
73 {
74     return _sampling_policy;
75 }
76 
align_corners(bool align_corners)77 ResizeAttributes &ResizeAttributes::align_corners(bool align_corners)
78 {
79     _align_corners = align_corners;
80     return *this;
81 }
82 
align_corners() const83 bool ResizeAttributes::align_corners() const
84 {
85     return _align_corners;
86 }
87 
88 } // namespace dynamic_fusion
89 } // namespace experimental
90 } // namespace arm_compute
91