TanH

class dragon.vm.caffe.layers.TanH(layer_param)[source]

Apply the tanh function.

The Tanh function is defined as:

\[\text{Tanh}(x) = \frac{e^{x} - e^{-x}}{e^{x} + e^{-x}} \]

Examples:

layer {
    type: "TanH"
    bottom: "g/conv5"
    top: "g/image"
}