Unclear about the reorders prints at the end of the convolutions
I am running the first convolution layer of resnet50 using benchdnn and MKLDNN_VERBOSE set to 1. I use the following command: ./benchdnn --conv --dir=FWD_I --cfg=f32 g1mb50ic3ih224iw224oc64oh112ow112kh7kw7sh2sw2ph3pw3n"resnet_50:conv1" I get the output: mkldnn_verbose,exec,reorder,jit:uni,undef,in:f32_nchw out:f32_nchw,num:1,50x3x224x224,4.33594 mkldnn_verbose,exec,reorder,jit:uni,undef,in:f32_goihw out:f32_gOhwi8o,num:1,1x64x3x7x7,0.960938 mkldnn_verbose,exec,reorder,jit:uni,undef,in:f32_nchw out:f32_nChw8c,num:1,50x64x112x112,16.5391 mkldnn_verbose,exec,convolution,jit:avx2,forward_inference,fsrc:nchw fwei:gOhwi8o fbia:undef fdst:nChw8c,alg:convolution_direct,mb50_g1ic3oc64_ih224oh112kh7sh2dh0ph3_iw224ow112kw7sw2dw0pw3,24.1069 mkldnn_verbose,exec,reorder,jit:uni,undef,in:f32_nChw8c out:f32_nchw,num:1,50x64x112x112,16.2 mkldnn_verbose,exec,reorder,jit:uni,undef,in:f32_nChw8c out:f32_nchw,num:1,50x64x112x112,12.322 0:PASSED __REPRO: --dir=FWD_I mb50ic3ih224oc64oh112kh7sh2ph3nresnet_50:conv1
In the output print: I am not sure why are there 2 reorder statements being printed after the convolution. Shouldn't there be just one reorder for conversion of the output tensor from nChw8c to nchw? Also the time taken by both reorders are in the same range, unlike what I can see at the link: https://intel.github.io/mkl-dnn/perf_profile.html
I reproduced this issue. This seems to be unnecessary reorder. Great catch ! We will work on fixing it.
Fixed in a29e4015ed1337c78b78f37a1ac35ceaed2d78e1