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 2021/09/17 08:01:00 UTC

[GitHub] [incubator-mxnet] PawelGlomski-Intel opened a new pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

PawelGlomski-Intel opened a new pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589


   ## Description ##
   next_impl is broken for deconvolution since oneDNN 2.3. This change removes calls to this function because it never worked anyway - it always returned false, never finding another implementation (to achieve this, a new primitive descriptior had to be created) 
   
   ## Checklist ##
   ### Essentials ###
   - [ ] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
   - [ ] Changes are complete (i.e. I finished coding on this PR)
   - [ ] All changes have test coverage
   - [ ] Code is well-documented
   
   ### Changes ###
   - Removed calls to next_impl in deconvolution


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] bartekkuncer commented on a change in pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
bartekkuncer commented on a change in pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#discussion_r719178441



##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -83,14 +83,12 @@ std::shared_ptr<deconv_fwd_pd_t> MKLDNNDeconvFwd::CreatePrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       while -> if?

##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -222,14 +220,12 @@ std::shared_ptr<deconv_bwd_data_pd_t> MKLDNNDeconvBwd::CreateDataPrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->diff_dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       while -> if?

##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -248,14 +244,12 @@ std::shared_ptr<deconv_bwd_weights_pd_t> MKLDNNDeconvBwd::CreateWeightsPrimitive
   const auto get_out_size     = [&pd]() { return pd->diff_dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       While -> if?




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-930092655


   Jenkins CI successfully triggered : [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-930092598






-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-922737651


   Jenkins CI successfully triggered : [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-930415178


   Jenkins CI successfully triggered : [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-923925228


   @mxnet-bot run ci [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-922878470


   Jenkins CI successfully triggered : [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-930092655






-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-923831096


   Jenkins CI successfully triggered : [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on a change in pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on a change in pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#discussion_r719209447



##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -83,14 +83,12 @@ std::shared_ptr<deconv_fwd_pd_t> MKLDNNDeconvFwd::CreatePrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       I am not certain, but it at least provides that opportunity. I think it's worth the additional initialization time.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-922697494


   @mxnet-bot run ci [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] akarbown merged pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
akarbown merged pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-922737604


   @mxnet-bot run ci [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on a change in pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on a change in pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#discussion_r719193304



##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -83,14 +83,12 @@ std::shared_ptr<deconv_fwd_pd_t> MKLDNNDeconvFwd::CreatePrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       But I could change it to use `if` and impose a plain format on all descriptors at once




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] bartekkuncer commented on a change in pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
bartekkuncer commented on a change in pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#discussion_r719199515



##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -83,14 +83,12 @@ std::shared_ptr<deconv_fwd_pd_t> MKLDNNDeconvFwd::CreatePrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       If you are certain of a better implementation actually being chosen after imposing plain format to just one/two tensors then it should stay as is, but if not I believe it would be better to have them all reshaped at once.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-922697552


   Jenkins CI successfully triggered : [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-923831015


   @mxnet-bot run ci [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] bartekkuncer commented on a change in pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
bartekkuncer commented on a change in pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#discussion_r719214868



##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -83,14 +83,12 @@ std::shared_ptr<deconv_fwd_pd_t> MKLDNNDeconvFwd::CreatePrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       Ok, lets keep it this way.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on a change in pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on a change in pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#discussion_r719191625



##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -83,14 +83,12 @@ std::shared_ptr<deconv_fwd_pd_t> MKLDNNDeconvFwd::CreatePrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       No, ImposePlainWherePadding imposes a plain format on one descriptor at a time: first the data descriptor, then the output descriptor, and the weight descriptor at the end. This way, maybe a better implementation will be selected, than the fully plain one.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] bartekkuncer commented on a change in pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
bartekkuncer commented on a change in pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#discussion_r719199515



##########
File path: src/operator/nn/mkldnn/mkldnn_deconvolution.cc
##########
@@ -83,14 +83,12 @@ std::shared_ptr<deconv_fwd_pd_t> MKLDNNDeconvFwd::CreatePrimitiveDesc(
   const auto get_out_size     = [&pd]() { return pd->dst_desc().get_size(); };
 
   while (!ddc.CheckImplSizeReq(get_data_size(), get_weights_size(), get_out_size())) {

Review comment:
       If you are certain of a better implementation actually being chosen after imposing plain format to just one/two tensors then it should stay as is, but if not I believe it would be better to have them all flattened at once.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-930092598


   @mxnet-bot run ci [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-930900717


   @akarbown I believe this can be merged


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-930415131


   @mxnet-bot run ci [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-922878405


   @mxnet-bot run ci [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-923925322


   Jenkins CI successfully triggered : [unix-gpu]


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-mxnet] mxnet-bot commented on pull request #20589: [v1.x][BUGFIX][ONEDNN] Remove next_impl calls from deconvolution

Posted by GitBox <gi...@apache.org>.
mxnet-bot commented on pull request #20589:
URL: https://github.com/apache/incubator-mxnet/pull/20589#issuecomment-921591227


   Hey @PawelGlomski-Intel , Thanks for submitting the PR 
   All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands: 
   - To trigger all jobs: @mxnet-bot run ci [all] 
   - To trigger specific jobs: @mxnet-bot run ci [job1, job2] 
   *** 
   **CI supported jobs**: [edge, clang, unix-gpu, centos-gpu, website, sanity, centos-cpu, unix-cpu, windows-gpu, miscellaneous, windows-cpu]
   *** 
   _Note_: 
    Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin. 
   All CI tests must pass before the PR can be merged. 
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org