ONE - On-device Neural Engine
Loading...
Searching...
No Matches
CircleL2Pool2D.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 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#include "CircleCloneNode.h"
18
19namespace luci
20{
21
23{
25 return nullptr;
26 if (node->padding() == luci::Padding::UNDEFINED)
27 return nullptr;
28
29 auto *cloned = _graph->nodes()->create<luci::CircleL2Pool2D>();
30 if (cloned != nullptr)
31 {
33 cloned->padding(node->padding());
34 cloned->filter()->h(node->filter()->h());
35 cloned->filter()->w(node->filter()->w());
36 cloned->stride()->h(node->stride()->h());
37 cloned->stride()->w(node->stride()->w());
38 }
39 return cloned;
40}
41
42} // namespace luci
L2_POOL_2D in Circle.
Padding padding() const
const Filter * filter(void) const
const Stride * stride(void) const
uint32_t h() const
Definition AttrFilter.h:34
uint32_t w() const
Definition AttrFilter.h:30
uint32_t h() const
Definition AttrStride.h:34
uint32_t w() const
Definition AttrStride.h:30