Pytorch Torch Log10
# PyTorch torch.log10 Function
* * PyTorch torch Reference Manual](#)
`torch.log10` is a PyTorch function used to calculate the base-10 logarithm.
### Function Definition
torch.log10(input, out)
* * *
## Example Usage
## Example
import torch
# Calculate base-10 logarithm
x = torch.tensor([1,10,100,1000])
result = torch.log10(x)
print(result)
* * PyTorch torch Reference Manual](#)
YouTip