Shortcuts

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

Function Documentation

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

Computes x * log(y) for inputs, elementwise See https://pytorch.org/docs/master/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);

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources