Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add grouped binary convolution support (2/3): reference kernel. #550

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

AdamHillier
Copy link
Contributor

@AdamHillier AdamHillier commented Oct 22, 2020

What do these changes do?

This is second of a group of PRs to add support for grouped binary convolutions. I've split the work into three PRs to make review easier.

This PR adds support for grouped convolutions to the reference kernel.

How Has This Been Tested?

The kernel tests have been extended to include grouped convolution test cases. This was more complicated than it seems, because the built-in Conv2D op doesn't support groups. To calculate the expected output, I therefore emulate a grouped convolution with multiple Conv2D ops and manual concatenation at the end.

Benchmark Results

N/A.

Related issue number

#549, #551.

larq_compute_engine/core/bconv2d/reference.h Outdated Show resolved Hide resolved
@AdamHillier AdamHillier added the feature New feature or request label Oct 23, 2020
@AdamHillier AdamHillier force-pushed the grouped-convolutions-converter branch 2 times, most recently from 1392f3e to 1ba74aa Compare November 5, 2020 00:50
Base automatically changed from grouped-convolutions-converter to master November 5, 2020 12:53
Add support for grouped binary convolutions to the reference kernel.
Extend the kernel tests to include grouped convolutions, through
emulation with multiple convolutions since the built-in Conv2D op
doesn't support groups.
@AdamHillier AdamHillier merged commit d7bc3e4 into master Nov 6, 2020
@AdamHillier AdamHillier deleted the grouped-convolutions-reference branch November 6, 2020 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants