torch.distributions.transforms.TanhTransform
class TanhTransform extends Transformnew TanhTransform(options?: TransformOptions)
- readonly
domain(unknown) - readonly
codomain(unknown) - readonly
bijective(unknown) - readonly
sign(unknown)
Tanh transform: y = tanh(x) (maps ℝ → (-1, 1)).
Transform via the mapping y = tanh(x). This transform maps real numbers to the interval (-1, 1). The inverse is arctanh: x = 0.5 * log((1 + y) / (1 - y)).