luobao-intel commented on issue #11664: Fall back when sparse arrays are passed 
to MKLDNN-enabled operators
URL: https://github.com/apache/incubator-mxnet/pull/11664#issuecomment-412392000
 
 
   The training and inference performance of regression verifying for fallback 
merge is shown as follows. This data is collected on commit 
3ea67a7a16cd20cc982704dd6da284fd79c8c3eb.
   The training comparison:
   
   Topo  |      batchsize  |    6148(fallback)| 6148(origin)
   | --------   | :-----:   | :----: |:----: |
   alexnet       |1      |30.594143      |31.317253
   | |2  |41.044092      |41.132786
   | |4  |80.769897      |81.800255
   | |8  |133.454369     |127.187418
   ||16  |224.20456      |221.552398
   | |32         |302.540959     |305.953074
   | |64         |383.023917     |330.386532
   | |128        |447.751747     |435.501388
   | |256        |477.884483     |474.643253
   vgg-16 |     1        |9.848415       |9.811869
   | |2  |12.403094      |12.305232
   ||4   |17.652585      |17.385885
   | |8  |22.634356      |20.478328
   ||16  |27.60285       |27.545312
   | |32         |31.050534      |30.916987
   | |64         |33.113762      |32.895624
   | |128        |34.623087      |34.604778
   | |256        |35.412343      |35.241626
   vgg-19 |     1        |8.483369       |8.561665
   ||2   |10.670349      |10.639146
   | |4  |15.133063      |15.205443
   | |8  |19.301709      |19.264988
   | |16         |22.8069        |23.004417
   | |32         |25.658372      |25.787008
   | |64         |27.210528      |27.148756
   | |128        |28.396534      |28.622843
   | |256 |     28.990824        |28.944935
   inception-bn  |1      |5.173929       |5.113685
   | |2  |9.713608       |9.612722
   | |4  |18.292555      |17.625253
   | |8  |32.262617      |32.123224
   | |16         |51.378436      |50.281799
   | |32   |71.756796    |77.19132
   | |64         |99.396415      |101.789003
   | |128        |122.943234     |125.025602
   | |256        |140.761579     |140.559997
   inception-v3  |1      |3.647243       |3.701843
   | |2  |6.893006       |7.003765
   ||4   |12.292691      |12.322165
   | |8  |20.018688      |20.248172
   | |16         |29.733195      |29.502392
   ||32  |39.961187      |39.015816
   | |64         |46.334718      |47.595459
   ||128         |53.897898      |54.346451
   ||256         |58.247023      |58.307715
   resnet-50 |  1        |5.828596       |5.758312
   | |2  |9.999834       |9.925494
   | |4  |17.197613      |16.971942
   | |8  |27.336548      |26.727552
   | |16         |39.047838      |37.635901
   | |32         |51.535267      |50.304822
   | |64         |60.800547      |59.694137
   | |128 |     68.016266        |66.886088
   ||256         |73.783432      |72.118631
   resnet-152    |1      |2.073641       |2.020319
   | |2  |3.745274       |3.577454
   ||4   |6.488948       |6.380499
   | |8  |10.482311      |10.37387
   | |16         |15.354603      |14.47856
   | |32         |19.90136       |19.666869
   | |64         |25.205104      |24.286143
   | |128        |28.272118      |28.342906
   | |256        |30.751341      |29.938136
   
   The Inference comparison:
   
     Topo         |batchsize    |6148(fallback) |6148(origin)
   | --------   | :-----:   | :----: |:----: |
   alexnet      |1      |230.609201     |272.974964
   ||2  |459.347717     |418.977067
   ||4  |562.738327     |500.14998
   ||8  |757.427326     |683.123778
   ||16 |995.188787     |1010.835509
   ||32 |1236.91575     |1220.31215
   ||64 |1386.149118    |1310.73248
   ||128        |1492.969058    |1059.182116
   ||256 |1516.787892   |1502.325897
   vgg-16       |1      |64.936414      |62.079648
   ||2  |84.860327      |82.680198
   ||4  |88.850584      |89.668909
   ||8  |98.573954      |98.142158
   ||16 |114.243305     |114.564623
   ||32 |117.061494     |116.955362
   ||64 |116.544261     |119.016377
   ||128|       117.818935      |119.549992
   ||256        |120.201841     |119.661409
   vgg-19       |1      |56.805177      |54.132415
   ||2  |71.964449      |70.584329
   ||4  |77.130441      |75.984336
   ||8  |84.741283      |83.674499
   ||16 |94.627382      |94.114408
   ||32 |96.506882      |95.726291
   ||64 |95.06602       |96.789072
   ||128        |97.67915       |96.973608
   ||256|       97.465934       |96.771837
   inception-bn |1      |103.438399     |103.472951
   ||2  |166.834318     |161.873053
   ||4  |255.293207     |250.687353
   ||8  |340.244836     |333.390418
   ||16 |410.579713     |406.384
   ||32 |452.503148     |447.816195
   ||64 |490.925741     |467.791765
   ||128        |493.556792     |497.755161
   ||256        |504.554601     |483.210319
   inception-v3 |1      |51.675768      |51.394543
   ||2  |84.020412      |83.020656
   ||4  |117.211207     |118.202891
   ||8  |145.685021     |144.755562
   ||16 |164.314623     |161.190974
   ||32 |181.601478     |177.47979
   ||64 |187.68821      |183.350203
   ||128        |187.519656     |186.671198
   ||256        |190.363415     |185.131233
   resnet-50    |1      |74.352261      |71.926143
   ||2  |105.118596     |100.971862
   ||4  |136.682507     |129.251114
   ||8  |160.903148     |150.033564
   ||16 |186.371277     |184.590927
   ||32 |210.353603     |197.494244
   ||64 |220.03369      |205.50499
   ||128|       222.752326      |209.56644
   ||256        |220.268782     |202.993866
   resnet-152   |1      |31.555538      |30.415254
   ||2  |44.313238      |41.896732
   ||4  |56.402015      |53.602173
   ||8  |66.893727      |61.240171
   ||16 |79.20712       |73.083458
   ||32 |83.782056      |82.280132
   ||64 |93.311579      |85.641401
   ||128        |93.520913      |87.348002
   ||256|       89.06415        |83.397316
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to