Elffuss BraidHub

kikocis/ncnn public

master · 992 BRawPermalink
1// Copyright (c) 2023 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_CUMULATIVESUM_H
16#define LAYER_CUMULATIVESUM_H
17
18#include "layer.h"
19
20namespace ncnn {
21
22class CumulativeSum : public Layer
23{
24public:
25 CumulativeSum();
26
27 virtual int load_param(const ParamDict& pd);
28
29 virtual int forward_inplace(Mat& bottom_top_blob, const Option& opt) const;
30
31public:
32 int axis;
33};
34
35} // namespace ncnn
36
37#endif // LAYER_CUMULATIVESUM_H