Rate this Page

Function torch::special::xlogy(const Tensor&, const Tensor&)#

Function Documentation#

inline Tensor torch::special::xlogy(const Tensor &self, const Tensor &other)#

Computes x * log(y) for inputs, elementwise See https://pytorch.org/docs/main/special.html#torch.special.xlogy.

Example:

auto x = torch::randn(128, dtype=kDouble);
auto y = torch::randn(128, dtype=kDouble);
torch::special::xlogy(x, y);