Skip to content

torch.log10() computes torch.log() #694

@kaiidams

Description

@kaiidams
torch.log10(torch.tensor(new float[] {10, 20, 30}))

[3], type = Float32, device = cpu
 2.3026 2.9957 3.4012

Expected:

1.0000, 1.3010, 1.4771

src\TorchSharp\Tensor\Tensor.Math.cs

        /// <summary>
        /// Returns a new tensorwith the logarithm to the base 10 of the elements of input.
        /// </summary>
        /// <param name="input">The input tensor.</param>
        public static Tensor log10(Tensor input) => input.log();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions