log2.torch.Tensor {rTorch} | R Documentation |
Logarithm of a tensor in base 2
Description
Logarithm of a tensor in base 2
Usage
## S3 method for class 'torch.Tensor'
log2(x)
Arguments
x |
a tensor |
Examples
## Not run:
x <- torch$tensor(c(512, 1024, 2048, 4096)) # tensor([ 9., 10., 11., 12.])
## End(Not run)
[Package rTorch version 0.4.2 Index]