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