Elffuss BraidHub

kikocis/ncnn public

master · 975 BRawPermalink
1// Copyright (c) 2022 Xiaomi Corp. (author: Fangjun Kuang)
2//
3// Licensed under the BSD 3-Clause License (the "License"); you may not use this
4// file except in compliance with the License. You may obtain a copy of the
5// License at
6//
7// https://opensource.org/licenses/BSD-3-Clause
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12// License for the specific language governing permissions and limitations under
13// the License.
14
15#ifndef LAYER_GLU_H
16#define LAYER_GLU_H
17
18#include "layer.h"
19
20namespace ncnn {
21
22class GLU : public Layer
23{
24public:
25 GLU();
26
27 virtual int load_param(const ParamDict& pd);
28
29 virtual int forward(const Mat& bottom_blob, Mat& top_blob,
30 const Option& opt) const;
31
32public:
33 int axis;
34};
35
36} // namespace ncnn
37
38#endif // LAYER_GLU_H