https://github.com/BVLC/caffe/blob/master/src/caffe/layers/neuron_layer.cpp#L18 serves this purpose.