You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/08/13 03:03:14 UTC
[GitHub] [incubator-mxnet] ElaineBao opened a new pull request #15870:
update support MKLDNN BN conditions
ElaineBao opened a new pull request #15870: update support MKLDNN BN conditions
URL: https://github.com/apache/incubator-mxnet/pull/15870
## Description ##
update BN conditions of when to run into MKLDNN.
## Changes ##
- [ ] support BN with arbitrary channel size
- [ ] support BN with different MKLDNN layout
## Performance ##
1. resnet50 v2 has one BN with shape (3 x 224 x 224), which cannot run into MKLDNN before changing the condition. Performance comparison before and after the change is as below.
2. When a model has fp32 bn along with other int8 ops, it triggers the IsMKLDNNData() check and cannot run int MKLDNN before changing the condition. Performance comparison is as below.
OP | Time (ms) | Calls | Avg (ms/call)
-|-|-|-
5000 MKLDNN BN (various shapes) + 100 native BN with shape (3x224x224) | 8127.24 | 5100 | 1.59
5000 MKLDNN BN (various shapes) + 100 MKLDNN BN with shape (3x224x224) | 6947.11 | 5100 | 1.36
fp32 native BN | 21909.83 | 2700 | 8.12
fp32 MKLDNN BN | 3794.58 | 2700 | 1.41
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services