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

Remove RUY_ASM_FLAG_HAS_BIAS #389

Merged
merged 2 commits into from
Jun 1, 2020
Merged

Remove RUY_ASM_FLAG_HAS_BIAS #389

merged 2 commits into from
Jun 1, 2020

Conversation

lgeiger
Copy link
Member

@lgeiger lgeiger commented Jun 1, 2020

What do these changes do?

This PR removes the handling of cases where post_activation_bias can be null from the optimized convolution kernels.
In the converter post_activation_bias and post_activation_multiplier will always be set, so since we don't check for the existence of post_activation_multiplier in the optimized assembly we can also get rid of the check for post_activation_bias. This check has been added moved over from TFLite which allows biases to be null. This is not the case here so I think this can be savely removed from the optimized code path.

How Has This Been Tested?

This has purely been tested on CI since I originally made these changes when experiment with #263 only now rebased them onto the latest master.

Benchmark Results

I didn't ran any benchmarks for these changes, but I am happy to do so if you think it would be useful

Related issue number

Removing these checks might make implementing AArch64 support for #387 a bit easier.

@lgeiger lgeiger added the internal-improvement Internal Improvements and Maintenance label Jun 1, 2020
@lgeiger lgeiger requested a review from a team June 1, 2020 10:46
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.

Nice, seems sensible to me 👍

@AdamHillier AdamHillier merged commit 9626e7b into master Jun 1, 2020
@AdamHillier AdamHillier deleted the simplify-is-bias branch June 1, 2020 11:59
AdamHillier pushed a commit that referenced this pull request Jun 1, 2020
Tombana pushed a commit that referenced this pull request Apr 6, 2021
* Enable unittest on develop branch

* Only run ARM and Android tests on LCE public

Closes #1

* Use private LCE micro cache in builds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal-improvement Internal Improvements and Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants