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
Inconsistent results from tf.raw_ops.LRNGrad
between CPU and GPU
#56849
Comments
@gadagashwini, |
Hi, thank you for your reply : ) I installed version 2.9.1 locally (cuda 11.2) and ran the same code without any problems, still got inconsistent results. I suspect that the GPU environment of the remote colab is AMD ROCm, so the problem you encountered will occur, refer to: ROCm/ROCm#684 So it is better to change to cuda environment to test this code. |
Colab Gpu uses Nvidia and Cuda. +-----------------------------------------------------------------------------+ |
Ok. I have no idea about this problem now. |
The CPU and GPU gradients are the same if I change
I think it's reasonable for the CPU and GPU gradients to return different results if you pass invalid values to the @rohan100jain, do you agree that it's OK for the gradient op to return different results on the CPU and GPU if given an invalid output from the forward pass? |
Click to expand!
Issue Type
Bug
Source
source
Tensorflow Version
2.10.0
Custom Code
Yes
OS Platform and Distribution
Ubuntu 20.04.4 LTS
Mobile device
No response
Python version
3.8.10
Bazel version
5.1.1
GCC/Compiler version
9.4.0
CUDA/cuDNN version
11.2
GPU model and memory
RTX 3090 2*24G
Current Behaviour?
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: