# tensorplay.functional.log10 Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.log10.html ```python tensorplay.functional.log10(input: Tensor, *, out: Tensor | None) → Tensor ``` Returns a new tensor with the logarithm to the base 10 of the elements of input. $$y_{i} = \log_{10} (x_{i})$$ Parameters: input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.rand(5) >>> a tensor([ 0.5224, 0.9354, 0.7257, 0.1301, 0.2251]) >>> tensorplay.log10(a) tensor([-0.2820, -0.0290, -0.1392, -0.8857, -0.6476]) ```