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 zero-padding support to the reference kernel #571

Merged
merged 5 commits into from
Nov 20, 2020

Conversation

Tombana
Copy link
Collaborator

@Tombana Tombana commented Nov 19, 2020

What do these changes do?

This PR adds zero-padding support to the reference kernel, for all output types, group sizes, and activation functions.
(Previously we only supported zero-padding for the regular float kernel with no activation functions and no groups.)

Furthermore the LiteInterpreter now has an extra argument to choose the reference kernel, in order to be able to test against zero-padding.

How Has This Been Tested?

The bconv2d tests have been updated.

@Tombana Tombana requested a review from a team November 19, 2020 18:27
@Tombana Tombana added the feature New feature or request label Nov 20, 2020
Copy link
Contributor

@AdamHillier AdamHillier left a comment

Choose a reason for hiding this comment

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

TwoOne minor remaining comments but otherwise this looks great :)

@Tombana
Copy link
Collaborator Author

Tombana commented Nov 20, 2020

@lkindrat-xmos This might be relevant to you for internal testing. You can now run LiteInterpreter( use_reference_bconv = True ) which supports zero-padding.

@Tombana Tombana merged commit 747b6b7 into master Nov 20, 2020
@Tombana Tombana deleted the zero_padding_reference branch November 20, 2020 14:30
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.

2 participants