Dragon API Dragon v0.3.0 Python TanH¶ class dragon.vm.caffe.core.layers.TanH(layer_param)[source]¶ Apply the tanh function. The Tanh function is defined as: \[\text{Tanh}(x) = \frac{\exp(x) - \exp(-x)}{\exp(x) + \exp(-x)} \] Examples: layer { type: "TanH" bottom: "g/conv5" top: "g/image" }