oneDNN icon indicating copy to clipboard operation
oneDNN copied to clipboard

accuracy issue in a graph conv test

Open Mchenr opened this issue 2 years ago • 2 comments

I run this test in an AArch64 machine that enable sve256, and failed. image

I notice the comment report a accuracy issue in AArch64. I want to know what causes the accuracy issue and why to use dnnl_cpu_isa_avx in the if statement. Has the test the same accuracy issue regardless instruments? image

oneDNN version is v3.3.3, and I get value is 7 from dnnl_get_effective_cpu_isa() method. image @TaoLv

Mchenr avatar Jan 26 '24 06:01 Mchenr

Hi @Mchenr, I don't know why the slight accuracy issue on these platforms. Possibly it's due to how mish or tanh is calculated. The check of dnnl_cpu_isa_avx is used here to relax the check on Intel Sandy Bridge CPU (SNB as mentioned in the code comments) which only supports AVX. The case is tested on other Intel CPU platforms and runs into the else branch when AVX2 and above ISA is supported.

TaoLv avatar Jan 26 '24 08:01 TaoLv

thanks for your answer!

Mchenr avatar Jan 26 '24 09:01 Mchenr