This repository was archived by the owner on Nov 17, 2023. It is now read-only.
[BUGFIX] Add check to make sure num_group is non-zero#20186
Merged
szha merged 2 commits intoapache:masterfrom Apr 19, 2021
Merged
[BUGFIX] Add check to make sure num_group is non-zero#20186szha merged 2 commits intoapache:masterfrom
szha merged 2 commits intoapache:masterfrom
Conversation
|
Hey @Adnios , Thanks for submitting the PR
CI supported jobs: [clang, edge, unix-gpu, website, centos-gpu, centos-cpu, windows-gpu, unix-cpu, windows-cpu, miscellaneous, sanity] Note: |
Contributor
Author
|
@mxnet-bot run ci [all] |
Contributor
Author
|
@mxnet-bot run ci [windows-cpu] |
1 similar comment
Member
|
@mxnet-bot run ci [windows-cpu] |
Contributor
Author
|
@mxnet-bot run ci [windows-gpu] |
Member
|
@Adnios thank you for the fix |
chinakook
pushed a commit
to chinakook/mxnet
that referenced
this pull request
Aug 4, 2021
* add check for group not equal zero * num_group in convolution must be positive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related issue: #19921
When
group=0, themxnet.gluon.nn.Conv1D(Conv2D, Conv3D)will cause crashes(floating point exception)MxNet doesn't seem to have checked whether
group=0. This pr adds check for group not equal zero insrc/operator/nn/convolution.cc. Now the error message will be like this.We can use the following code to test.
Checklist
Essentials
Changes
Comments