log2.torch.Tensor: Logarithm of a tensor in base 2

Description Usage Arguments Examples

Description

Logarithm of a tensor in base 2

Usage

1
2
## S3 method for class 'torch.Tensor'
log2(x)

Arguments

x

a tensor

Examples

1
2
3
4
## Not run: 
x <- torch$tensor(c(512, 1024, 2048, 4096))   # tensor([ 9., 10., 11., 12.])

## End(Not run)

f0nzie/rTorch documentation built on Oct. 28, 2021, 5:40 a.m.