torch.log10
- torch.log10(input, *, out=None) → Tensor
-
返回一个新张量,其中包含输入张量中每个元素以10为底的对数。
$y_{i} = \log_{10} (x_{i})$示例:
>>> a = torch.rand(5) >>> a tensor([ 0.5224, 0.9354, 0.7257, 0.1301, 0.2251]) >>> torch.log10(a) tensor([-0.2820, -0.0290, -0.1392, -0.8857, -0.6476])