pytorch / 2 / generated / torch.logaddexp2.html

torch.logaddexp2

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

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

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

Parameters
  • input (Tensor) – the input tensor.
  • other (Tensor) – the second input tensor
Keyword Arguments

out (Tensor, optional) – the output tensor.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.logaddexp2.html