Skip to content

Commit ca7e58b

Browse files
committed
change HardTanh -> HardTanH
1 parent 06f0d8d commit ca7e58b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/caffe/layers/hard_tanh_layer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ namespace caffe {
1313

1414
// implement of hard_tanh activation
1515

16-
template <typename Dtype> class HardTanhLayer : public NeuronLayer<Dtype> {
16+
template <typename Dtype> class HardTanHLayer : public NeuronLayer<Dtype> {
1717
public:
18-
explicit HardTanhLayer(const LayerParameter &param)
18+
explicit HardTanHLayer(const LayerParameter &param)
1919
: NeuronLayer<Dtype>(param) {}
2020

21-
virtual inline const char *type() const { return "HardTanh"; }
21+
virtual inline const char *type() const { return "HardTanH"; }
2222

2323
protected:
2424
virtual void Forward_cpu(const vector<Blob<Dtype> *> &bottom,

src/caffe/layers/hard_tanh_layer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace caffe {
77

88
template <typename Dtype>
9-
void HardTanhLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype> *> &bottom,
9+
void HardTanHLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype> *> &bottom,
1010
const vector<Blob<Dtype> *> &top) {
1111
const Dtype *bottom_data = bottom[0]->cpu_data();
1212
Dtype *top_data = top[0]->mutable_cpu_data();
@@ -16,7 +16,7 @@ void HardTanhLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype> *> &bottom,
1616
}
1717
}
1818

19-
INSTANTIATE_CLASS(HardTanhLayer);
20-
REGISTER_LAYER_CLASS(HardTanh);
19+
INSTANTIATE_CLASS(HardTanHLayer);
20+
REGISTER_LAYER_CLASS(HardTanH);
2121

2222
} // namespace caffe

0 commit comments

Comments
 (0)