PyTorch torch.log10 function
PyTorch torch reference manual
torch.log10 is a function in PyTorch used to compute the logarithm base 10.
Function definition
torch.log10(input, out)
Usage examples
Example
import
torch
Compute the logarithm base 10
x
=
torch.
tensor
(
[
1
,
10
,
100
,
1000
]
)
result
=
torch.
log10
(
x
)
(
result
)