oneDNN icon indicating copy to clipboard operation
oneDNN copied to clipboard

Wrong output for DeConvolution

Open pranathibl opened this issue 6 years ago • 5 comments

Hi,

For some specific Stride and Filter sizes output is not correct. and for every run, output is different for the same input. This is the setup i have used TransposedConv_standalone.zip

version used - v1.0

Thanks, Pranathi

pranathibl avatar Aug 11 '20 04:08 pranathibl

Hi @pranathibl

Could you please post the log information for MKLDNN_VERBOSE=1 ./transposedConvLayer_exe to assist in debugging.

I have not been able to reproduce the issue so far having gotten the same output in output.txt file while executing the attached code with mkldnn-v1.0.4 on avx2 or avx512 ISA with varying number of threads.

alokbakshi avatar Aug 11 '20 12:08 alokbakshi

Hi @alokbakshi

I am seeing wrong outputs for multiple run. output is not same for each run. I have created a setup to run it multiple times. Can you verify with this? TransposedConv_standalone_multiple.zip

  • Pranathi

pranathibl avatar Aug 12 '20 07:08 pranathibl

Hi @pranathibl Could you please check if the same behavior is observed for v1.6?

tprimak avatar Aug 12 '20 21:08 tprimak

Hi @pranathibl

I have run your attached code on Linux machine (avx, avx2 and avx512 ISA) and on windows (avx2 isa) machine but could not reproduce the behavior -- namely different data in output{1..4} files -- that you observed.

I am assuming (based upon the exe extension) that you are running it on windows machine. Could you please post the output info from the following command: set MKLDNN_VERBOSE=1
transposedConvLayer_exe

... using that it would be easier to pinpoint the particular ISA the deconvolution primitive (and reorders) are being run on. Furthermore, as Tatyana mentioned could you also please check if the same issue persists with rls-v1.6

Different outputs on each run could be either due to threading bug (though so far I could not replicate it on my side) OR undefined behavior in the reproducer code itself (dangling pointers, end of the buffer read/write, etc.) To localize the bug further could you also please -- on your end -- verify that the behavior persists with single threaded run i.e. set OMP_NUM_THREADS=1
transposedConvLayer_exe

alokbakshi avatar Aug 12 '20 23:08 alokbakshi

Closing the issue as we are unable to reproduce it. Feel free to reopen or submit a new one with additional data.

vpirogov avatar Sep 16 '20 23:09 vpirogov