PyTorch
torch / torch
torch.log10¶
-
torch.
log10
(input, *, out=None) → Tensor¶ Returns a new tensor with the logarithm to the base 10 of the elements of
input
.yi=log10(xi)- Parameters
input (Tensor) – the input tensor.
- Keyword Arguments
out (Tensor, optional) – the output tensor.
Example:
>>> 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])
此页内容是否对您有帮助
感谢反馈!