Function torch::special::expm1¶
Defined in File special.h
Function Documentation¶
-
Tensor
torch::special
::
expm1
(const Tensor &self)¶ Computes the exponential of the elements minus 1, elementwise See https://pytorch.org/docs/master/special.html#torch.special.expm1.
Example:
auto t = torch::randn(128, dtype=kDouble); torch::special::expm1(t);