Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
template <typename Dtype>
9
inline Dtype sigmoid(Dtype x) {
10
return 0.5 * tanh(0.5 * x) + 0.5;
11
}
12
13
template <typename Dtype>
14
void SigmoidLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,
Callers
1
Forward_cpu
Method · 0.70
Calls
1
tanh
Function · 0.85
Tested by
no test coverage detected