ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Padding2D.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef __LOCO_IR_PADDING2D_H__
18#define __LOCO_IR_PADDING2D_H__
19
20#include <cstdint>
21
22namespace loco
23{
24
25class Padding2D final
26{
27public:
28 Padding2D() : _top{0}, _bottom{0}, _left{0}, _right{0}
29 {
30 // DO NOTHING
31 }
32
33public:
34 Padding2D(uint32_t top, uint32_t bottom, uint32_t left, uint32_t right)
35 : _top{top}, _bottom{bottom}, _left{left}, _right{right}
36 {
37 // DO NOTHING
38 }
39
40public:
41 uint32_t top(void) const { return _top; }
42 void top(uint32_t value) { _top = value; }
43
44public:
45 uint32_t bottom(void) const { return _bottom; }
46 void bottom(uint32_t value) { _bottom = value; }
47
48public:
49 uint32_t left(void) const { return _left; }
50 void left(uint32_t value) { _left = value; }
51
52public:
53 uint32_t right(void) const { return _right; }
54 void right(uint32_t value) { _right = value; }
55
56private:
57 uint32_t _top;
58 uint32_t _bottom;
59 uint32_t _left;
60 uint32_t _right;
61};
62
63} // namespace loco
64
65#endif // __LOCO_IR_PADDING2D_H__
uint32_t left(void) const
Definition Padding2D.h:49
void left(uint32_t value)
Definition Padding2D.h:50
Padding2D(uint32_t top, uint32_t bottom, uint32_t left, uint32_t right)
Definition Padding2D.h:34
uint32_t top(void) const
Definition Padding2D.h:41
uint32_t bottom(void) const
Definition Padding2D.h:45
uint32_t right(void) const
Definition Padding2D.h:53
void bottom(uint32_t value)
Definition Padding2D.h:46
void right(uint32_t value)
Definition Padding2D.h:54
void top(uint32_t value)
Definition Padding2D.h:42