forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTanh.cpp
More file actions
29 lines (26 loc) · 712 Bytes
/
Copy pathTanh.cpp
File metadata and controls
29 lines (26 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Tanh.cpp
// MNNConverter
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "OpConverter.hpp"
class Tanh : public OpConverter {
public:
virtual void run(MNN::OpT* dstOp, const caffe::LayerParameter& parameters, const caffe::LayerParameter& weight);
Tanh() {
}
virtual ~Tanh() {
}
virtual MNN::OpType opType() {
return MNN::OpType_TanH;
}
virtual MNN::OpParameter type() {
return MNN::OpParameter_NONE;
}
};
void Tanh::run(MNN::OpT* dstOp, const caffe::LayerParameter& parameters, const caffe::LayerParameter& weight) {
dstOp->main.value = nullptr;
}
static OpConverterRegister<Tanh> a("TanH");