MCPcopy Create free account
hub / github.com/BVLC/caffe / sigmoid

Function sigmoid

src/caffe/layers/sigmoid_layer.cpp:9–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8template <typename Dtype>
9inline Dtype sigmoid(Dtype x) {
10 return 0.5 * tanh(0.5 * x) + 0.5;
11}
12
13template <typename Dtype>
14void SigmoidLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,

Callers 1

Forward_cpuMethod · 0.70

Calls 1

tanhFunction · 0.85

Tested by

no test coverage detected