| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
| title | ReLU / Rectified-Linear and Leaky-ReLU Layer |
|---|
Layer type: ReLU
CPU implementation: ./src/caffe/layers/relu_layer.cpp
CUDA GPU implementation: ./src/caffe/layers/relu_layer.cu
Sample (as seen in ./models/bvlc_reference_caffenet/train_val.prototxt)
layer {
name: "relu1"
type: "ReLU"
bottom: "conv1"
top: "conv1"
}
Given an input value x, The ReLU layer computes the output as x if x > 0 and negative_slope * x if x <= 0. When the negative slope parameter is not set, it is equivalent to the standard ReLU function of taking max(x, 0). It also supports in-place computation, meaning that the bottom and the top blob could be the same to preserve memory consumption.
{% highlight Protobuf %} {% include proto/ReLUParameter.txt %} {% endhighlight %}
| Back | FazBrowse Home | New Git URL |