torch_exp2: Exp2

View source: R/gen-namespace.R

torch_exp2R Documentation

Exp2

Description

Exp2

Usage

torch_exp2(self)

Arguments

self

(Tensor) the input tensor.

exp2(input, *, out=None) -> Tensor

Computes the base two exponential function of input.

y_{i} = 2^{x_{i}}

Examples

if (torch_is_installed()) {

torch_exp2(torch_tensor(c(0, log2(2.), 3, 4)))
}

torch documentation built on May 29, 2024, 9:54 a.m.