TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

SoftplusTransform

class tensorplay.distributions.SoftplusTransform(cache_size: int = 0)[source]

Transform via the mapping Softplus(x)=log⁡(1+exp⁡(x))\text{Softplus}(x) = \log(1 + \exp(x)). The implementation reverts to the linear function when x>20x > 20.

forward_shape(shape)

Infers the shape of the forward computation, given the input shape. Defaults to preserving shape.

property inv: Transform

Returns the inverse Transform of this transform. This should satisfy t.inv.inv is t.

inverse_shape(shape)

Infers the shapes of the inverse computation, given the output shape. Defaults to preserving shape.

On this page

Ask DeepWiki