PyTorch torch.log10 Function
PyTorch torch Reference Manual
torch.log10It is a function in PyTorch used to calculate base-10 logarithms.
Function Definition
torch.log10(input, out)
Usage Example
Example
import torch
# Calculate base-10 logarithm
x = torch.tensor([1, 10, 100, 1000])
result = torch.log10(x)
print(result)
# Calculate base-10 logarithm
x = torch.tensor([1, 10, 100, 1000])
result = torch.log10(x)
print(result)
Other Extensions