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/12/28 01:09:56 UTC
[GitHub] [incubator-mxnet] zixuanweeei commented on issue #17183:
[MKL-DNN][WIP] MKL-DNN RNN backward path enhancement
zixuanweeei commented on issue #17183: [MKL-DNN][WIP] MKL-DNN RNN backward path enhancement
URL: https://github.com/apache/incubator-mxnet/pull/17183#issuecomment-569372036
We compared the performance between 1cfaf3c and this PR (c91c9e1). The result of the performance test on LSTM and GRU is shown below. It can be inferred from the promotion rate that this patch has improved the performance of Backward. The performance of some forward paths has decreased significantly, which requires more investigation.
num_layer=1, batch_size=64, seq_len=50, input_dim=512
| directions | cell_type | hidden_size | Forward Gap | Backward Gap |
|------------|-----------|------------:|------------:|-------------:|
| 1 | lstm | 512 | -2.69% | 7.17% |
| 1 | lstm | 1024 | -2.65% | 10.02% |
| 2 | lstm | 512 | -3.13% | 7.11% |
| 2 | lstm | 1024 | -1.44% | 10.75% |
| 1 | gru | 512 | 0.26% | 9.63% |
| 1 | gru | 1024 | -2.91% | 7.84% |
| 2 | gru | 512 | -2.33% | 6.36% |
| 2 | gru | 1024 | -1.65% | 4.90% |
| 1 | rnn_relu | 512 | -9.08% | 7.08% |
| 1 | rnn_relu | 1024 | -7.52% | 8.63% |
| 2 | rnn_relu | 512 | -6.93% | 6.39% |
| 2 | rnn_relu | 1024 | -3.88% | 8.68% |
| 1 | rnn_tanh | 512 | -8.68% | 11.87% |
| 1 | rnn_tanh | 1024 | -7.71% | 10.42% |
| 2 | rnn_tanh | 512 | -10.97% | 4.60% |
| 2 | rnn_tanh | 1024 | -5.46% | 13.53% |
----------------------------------------------------------------
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