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

webgl: support grouped convolution #198

Merged
merged 4 commits into from
Aug 12, 2020
Merged

Conversation

fs-eire
Copy link
Contributor

@fs-eire fs-eire commented Jul 21, 2020

No description provided.

@@ -231,18 +231,15 @@ export class WebGLConv extends Conv {
if (group === 1 && (channels === 1 || (shape[2] * shape[3]) % channels === 0)) {
return kernel;
}
const strides = ShapeUtil.computeStrides(shape);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a check to ensure: input_channels/group == filter_channels somewhere ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fs-eire fs-eire linked an issue Aug 3, 2020 that may be closed by this pull request
Copy link
Collaborator

@hanbitmyths hanbitmyths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fs-eire fs-eire merged commit 0f7be19 into microsoft:master Aug 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: grouped convolution, depthwise convolution
3 participants