Learn R Programming

rTorch (version 0.4.2)

log10.torch.Tensor: Logarithm of a tensor in base 10

Description

Logarithm of a tensor in base 10

Usage

# S3 method for torch.Tensor
log10(x)

Arguments

x

a tensor

Examples

Run this code
# NOT RUN {
x <- torch$tensor(c(1, 10, 100, 1000))     # tensor([0., 1., 2., 3.])
# }

Run the code above in your browser using DataLab