ONE - On-device Neural Engine
Loading...
Searching...
No Matches
CircleDepthwiseConv2D.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::CircleDepthwiseConv2D>();
30 if (cloned != nullptr)
31 {
33 cloned->padding(node->padding());
34 cloned->stride()->h(node->stride()->h());
35 cloned->stride()->w(node->stride()->w());
36 cloned->depthMultiplier(node->depthMultiplier());
37 cloned->dilation()->h(node->dilation()->h());
38 cloned->dilation()->w(node->dilation()->w());
39 }
40 return cloned;
41}
42
43} // namespace luci
DEPTHWISE_CONV_2D in Circle.
const Stride * stride(void) const
const Dilation * dilation(void) const
uint32_t h() const
uint32_t w() const
uint32_t h() const
Definition AttrStride.h:34
uint32_t w() const
Definition AttrStride.h:30