# NOT RUN {
x <- torch$tensor(c(512, 1024, 2048, 4096)) # tensor([ 9., 10., 11., 12.])
base <- 2
log(x, base)
x <- torch$tensor(c(1, 10, 100, 1000)) # tensor([0., 1., 2., 3.])
log(x, 10)
# }
Run the code above in your browser using DataLab