Function torch::special::xlog1py(const Tensor&, const Tensor&)¶
Defined in File special.h
Function Documentation¶
-
Tensor
torch::special
::
xlog1py
(const Tensor &self, const Tensor &other)¶ Computes x * log1p(y) for inputs, elementwise See https://pytorch.org/docs/master/special.html#torch.special.xlog1py.
Example:
auto x = torch::randn(128, dtype=kDouble); auto y = torch::randn(128, dtype=kDouble); torch::special::xlog1py(x, y);