Skip to content
Features
Business
Explore
Marketplace
Pricing
This repository
Sign in
or
Sign up
Watch
1,993
Star
19,393
Fork
11,909
BVLC
/
caffe
Code
Issues
517
Pull requests
252
Projects
0
Wiki
Insights
Pulse
Graphs
sigmoid fix (cpp)
#3411
Merged
shelhamer
merged 1 commit into
BVLC
:
master
from
unknown repository
Apr 14, 2017
Conversation
0
Commits
1
Files changed
1
Changes from
all commits
Commits
Show all changes
1 commit
Select commit
0f61cc0
sigmoid fix (cpp)
Dec 3, 2015
Jump to…
Jump to file or symbol
Failed to load files and symbols.
Retry
+1
−1
Unified
Split
Show comments
View
2
src/caffe/layers/sigmoid_layer.cpp
@@ -7,7 +7,7 @@ namespace caffe {
template
<
typename
Dtype>
inline
Dtype
sigmoid
(Dtype x) {
-
return
1
. / (
1
. +
exp
(-x))
;
+
return
0.5
*
tanh
(
0.5
* x) +
0.5
;
}
template
<
typename
Dtype>
Toggle all file notes
You can't perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.