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
The code only prints the value if an error occurred. The ifs should test for err == nil.
if xgrad, err := x.Grad(); err != nil { fmt.Printf("dz/dx: %v", xgrad) } if ygrad, err := y.Grad(); err != nil { fmt.Printf("dz/dy: %v", ygrad) }
The text was updated successfully, but these errors were encountered:
Right you are! Could you make a PR? I'm abroad atm, but can merge pull requests
Sorry, something went wrong.
No branches or pull requests
The code only prints the value if an error occurred. The ifs should test for err == nil.
The text was updated successfully, but these errors were encountered: