Shortcuts

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

Function Documentation

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

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

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