| 1 | // Xavier Hsinyuan is pleased to support the open source community by making |
| 2 | // ncnn available. |
| 3 | // |
| 4 | // Copyright (C) 2021 Xavier Hsinyuan <me@lstlx.com>. All rights reserved. |
| 5 | // |
| 6 | // Licensed under the BSD 3-Clause License (the "License"); you may not use this |
| 7 | // file except in compliance with the License. You may obtain a copy of the |
| 8 | // License at |
| 9 | // |
| 10 | // https://opensource.org/licenses/BSD-3-Clause |
| 11 | // |
| 12 | // Unless required by applicable law or agreed to in writing, software |
| 13 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 | // License for the specific language governing permissions and limitations under |
| 16 | // the License. |
| 17 | |
| 18 | #ifndef LAYER_DROPOUT_RISCV_H |
| 19 | #define LAYER_DROPOUT_RISCV_H |
| 20 | |
| 21 | #include "dropout.h" |
| 22 | |
| 23 | namespace ncnn { |
| 24 | |
| 25 | class Dropout_riscv : public Dropout |
| 26 | { |
| 27 | public: |
| 28 | Dropout_riscv(); |
| 29 | |
| 30 | virtual int forward_inplace(Mat& bottom_top_blob, const Option& opt) const; |
| 31 | }; |
| 32 | |
| 33 | } // namespace ncnn |
| 34 | |
| 35 | #endif // LAYER_DROPOUT_RISCV_H |