Shortcuts

torch.logaddexp2

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

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

Calculates pointwise log2(2x+2y)\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.

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