torch.logaddexp2 — PyTorch 2.5 documentation (original) (raw)

torch.logaddexp2(input, other, *, out=None) → Tensor

Logarithm of the sum of exponentiations of the inputs in base-2.

Calculates pointwise log⁡2(2x+2y)\log_2\left(2^x + 2^y\right). Seetorch.logaddexp() for more details.

Parameters

Keyword Arguments

out (Tensor, optional) – the output tensor.

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.