blob: 1919dbc72d92936cdb1f155133acd749ea0d9ae5 [file] [log] [blame]
Jakub Sujak8ae57142022-12-02 16:09:06 +00001/*
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
27namespace arm_compute
28{
29namespace experimental
30{
31namespace dynamic_fusion
32{
33ResizeAttributes &ResizeAttributes::output_width(int32_t output_width)
34{
35 _output_width = output_width;
36 return *this;
37}
38
39int32_t ResizeAttributes::output_width() const
40{
41 return _output_width;
42}
43
44ResizeAttributes &ResizeAttributes::output_height(int32_t output_height)
45{
46 _output_height = output_height;
47 return *this;
48}
49
50int32_t ResizeAttributes::output_height() const
51{
52 return _output_height;
53}
54
55ResizeAttributes &ResizeAttributes::interpolation_policy(InterpolationPolicy interpolation_policy)
56{
57 _interpolation_policy = interpolation_policy;
58 return *this;
59}
60
61InterpolationPolicy ResizeAttributes::interpolation_policy() const
62{
63 return _interpolation_policy;
64}
65
66ResizeAttributes &ResizeAttributes::sampling_policy(SamplingPolicy sampling_policy)
67{
68 _sampling_policy = sampling_policy;
69 return *this;
70}
71
72SamplingPolicy ResizeAttributes::sampling_policy() const
73{
74 return _sampling_policy;
75}
76
77ResizeAttributes &ResizeAttributes::align_corners(bool align_corners)
78{
79 _align_corners = align_corners;
80 return *this;
81}
82
83bool ResizeAttributes::align_corners() const
84{
85 return _align_corners;
86}
87
88} // namespace dynamic_fusion
89} // namespace experimental
90} // namespace arm_compute