We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi:
Here's an example which shows a loss of precision which seems a little surprising to me when using Nx.as_type/2:
Nx.as_type/2
iex(2)> Nx.as_type(0.38, :f64) |> IO.inspect() #Nx.Tensor< f64 0.3799999952316284 >
whereas Nx.tensor/2 does the following (which is correct for :f64):
Nx.tensor/2
iex(3)> Nx.tensor(0.38, type: :f64) |> IO.inspect() #Nx.Tensor< f64 0.38 >
Thank you for any help you can provide!
-- Greg
The text was updated successfully, but these errors were encountered:
Duplicate of #448. :)
Sorry, something went wrong.
I was wrong, not a dup. :)
polvalente
Successfully merging a pull request may close this issue.
Hi:
Here's an example which shows a loss of precision which seems a little surprising to me when using
Nx.as_type/2
:whereas
Nx.tensor/2
does the following (which is correct for :f64):Thank you for any help you can provide!
-- Greg
The text was updated successfully, but these errors were encountered: