Function torch::special::log1p¶
Defined in File special.h
Function Documentation¶
-
inline Tensor torch::special::log1p(const Tensor &self)¶
Computes log(1 + x) of the input, elementwise See https://pytorch.org/docs/main/special.html#torch.special.log1p.
Example:
auto t = torch::randn(128, dtype=kDouble); torch::special::log1p(t);