-
Notifications
You must be signed in to change notification settings - Fork 893
Adding streaming_conv reference code. #2521
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
Adding streaming_conv reference code. #2521
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, just a few minor comments.
@@ -120,9 +120,11 @@ TFLMRegistration Register_CONV_2D() { | |||
return tflite::micro::RegisterOp(ConvInitXtensa, ConvPrepareXtensa, Eval); | |||
} | |||
|
|||
#if 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we go ahead and remove this function now?
/* TODO(b/277112516): Dilation is currently not supported on HiFi 4 NN Library | ||
*/ | ||
bool inputs_and_bias_ok = bias != nullptr; | ||
#if defined(HIFI3) || defined(HIFI4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this include HIFI5?
(input->type == kTfLiteInt8 || | ||
(input->type == kTfLiteInt16 && bias->type == kTfLiteInt64)); | ||
#else | ||
inputs_and_bias_ok = inputs_and_bias_ok && (input->type == kTfLiteInt8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is this supposed to be for HIFI5?
|
||
switch (input->type) { | ||
case kTfLiteInt16: { | ||
#if defined(HIFI3) || defined(HIFI4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HIFI5?
// http://b/262003750). As such, while we have a fallback to the reference | ||
// implementation, production use-cases should only have int64 bias. | ||
if (bias->type == kTfLiteInt32) { | ||
return ConvReferenceEvalInt16(context, node); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be StreamingConvReferenceEvalInt16?
bias, output); | ||
} | ||
#else | ||
return ConvReferenceEvalInt16(context, node); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be StreamingConvReferenceEvalInt16?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, just a few minor comments.
@rascani, current changes are related to HiFi 4 only. we are planning to add HiFi 5 changes as well. |
@rascani, added HiFi 5 changes as well. |
@vnileshdaiict can you sign the CLA? |
Hi,
We have pushed the same changes with cad-audio account.
Please ignore the PR raised from this account.
Thanks and Regards,
Nileshkumar
…On Sat, Apr 20, 2024, 03:14 RJ Ascani ***@***.***> wrote:
@vnileshdaiict <https://github.com/vnileshdaiict> can you sign the CLA?
—
Reply to this email directly, view it on GitHub
<#2521 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFYXA2SQIWOSVCF35BQJ73LY6GF2XAVCNFSM6AAAAABFJHFK6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGMYTQNBVG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This is the PR from cad-audio, but the CLA is required to be signed by all accounts that have a commit on the PR. Since you have a commit on the PR, the change cannot be merged until you sign the CLA. |
@Mergifyio refresh |
✅ Pull request refreshed |
BUG=b/327502734