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)

rTorch documentation built on Jan. 13, 2021, 4:32 p.m.