jactorch.functional.arith#
Arithmetic operations.
Functions
|
Computes \(\mathrm{arc}\tanh(x)\). |
|
Computes \(\log \sigma(x)\). |
|
Computes \(\mathrm{logit}(x)\). |
|
Compute a soft maximum over the given dimension. |
|
Compute a soft minimum over the given dimension. |
|
Tensor stats: produces a summary of the tensor, including shape, min, max, mean, and std. |
Functions
- soft_amax(x, dim, tau=1.0, keepdim=False)[source]#
Compute a soft maximum over the given dimension. It can be viewed as a differentiable version of
torch.amax()
.
- soft_amin(x, dim, tau=1.0, keepdim=False)[source]#
Compute a soft minimum over the given dimension. It can be viewed as a differentiable version of
torch.amin()
.- Parameters:
x – input tensor.
dim – dimension to compute the soft minimum.
tau – temperature.
keepdim – whether to keep the dimension.
- Returns:
the soft minimum.
See also