-
Notifications
You must be signed in to change notification settings - Fork 761
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
NEMeanStdDevNormalizationLayer returns nans for f16 tensors #1095
Comments
Hi @alvoron I managed to reproduce this, however the range of input values in your test We just test for values in the range [-1.f , 1.f] see https://github.com/ARM-software/ComputeLibrary/blob/main/tests/validation/fixtures/MeanStdDevNormalizationLayerFixture.h#L61 I've also modified the test to use [-1000.f, 1000.f] and I see no nans
What's the use case for the range of values [-2000.0f, 3000.0f] ? is there a model using this? Hope this helps |
The issue is reproduced on style transfer model. I was able to reproduce the issue with the range [0, 1000]. |
Hi @alvoron Thank you for sharing the details. The following patch fixes the problem: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11311 This fix will be included in 24.05 Hope this helps. |
NEMeanStdDevNormalizationLayer returns nans if srd\dst tensors are f16.
The issue was reproduced on ACL 23.08
How ACL was built:
scons neon=1 opencl=0 openmp=0 cppthreads=1 arch=armv8.6-a Werror=false validation_tests=1 --jobs=8 os=macos build=native --silent fixed_format_kernels=1 asserts=1 debug=1
How reproducer was built:
clang++ -O2 -g -I./ComputeLibrary -I./ComputeLibrary/include mvn_bug.c -o bug -L./ComputeLibrary/build/ -L./ComputeLibrary/build/tests/ -L./ComputeLibrary/build/tests/framework/ -larm_compute -lAssetsLibrary.o -lRawTensor.o -lExceptions.o -std=c++17
Issue was reproduced on Apple M1
Reproducer:
The text was updated successfully, but these errors were encountered: