Learn R Programming

rTorch (version 0.0.3)

log.torch.Tensor: Logarithm of a tensor given the tensor and the base

Description

Logarithm of a tensor given the tensor and the base

Usage

# S3 method for torch.Tensor
log(x, base = exp(1L))

Arguments

x

a tensor

base

the base of the logarithm