Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kaiidams opened this issue Aug 11, 2022 · 1 comment
Closed

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

kaiidams opened this issue Aug 11, 2022 · 1 comment

Comments

@kaiidams
Copy link
Contributor

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();
@NiklasGustafsson
Copy link
Contributor

I wish all bugs were this easy to fix. Please use Tensor.log10() for now. This will be addressed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants