Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PyTorch torch.log10 function

PyTorch torch.log10 function


PyTorch torch reference manual 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

)

print

(

result

)


PyTorch torch reference manual PyTorch torch reference manual