Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

remove unnecessary checks on convolution parameters #10933

Closed
wants to merge 1 commit into from

Conversation

xinyu-intel
Copy link
Contributor

Description

Since dilate of 2-D convolution must be {1, 1}, remove some unnecessary code. @zheng-da

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

  • Feature1, tests, (and when applicable, API doc)
  • Feature2, tests, (and when applicable, API doc)

Comments

  • If this change is a backward incompatible change, why must this change be made.
  • Interesting edge cases to note here

@xinyu-intel
Copy link
Contributor Author

According to https://github.com/apache/incubator-mxnet/blob/master/src/operator/nn/convolution.cc#L359, the dilate of 2-D conv has been set hard to (1,1). So CHECK_GE(param.dilate.ndim(), 2U) must be passed and param.dilate.ndim() can't be 0.

@pengzhao-intel
Copy link
Contributor

@zheng-da @piiswrong tiny change to remove unnecessary code, please help take a review.

@zheng-da
Copy link
Contributor

does the convolution has the same performance with and without dilation?
could you please also do the same for deconvolution?

@xinyu-intel
Copy link
Contributor Author

ok, i'll have a try.

@eric-haibin-lin
Copy link
Member

any update?

@lupesko
Copy link
Contributor

lupesko commented Aug 21, 2018

@xinyu-intel @pengzhao-intel can you guys please follow up on the feedback so we can move this forward? Thanks!

@lupesko
Copy link
Contributor

lupesko commented Sep 5, 2018

@xinyu-intel @pengzhao-intel bounce.

@xinyu-intel
Copy link
Contributor Author

@lupesko Hi, can I close this pr first as this is just code refactor and low priority. Thanks!

@lupesko
Copy link
Contributor

lupesko commented Sep 14, 2018

@xinyu-intel up to you - feel free to follow up or close. Thanks!
@mxnet-label-bot [pr-awaiting-response]

@marcoabreu marcoabreu added the pr-awaiting-response PR is reviewed and waiting for contributor to respond label Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-response PR is reviewed and waiting for contributor to respond
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants