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

Xtensa LSTM: #2150

Merged
merged 17 commits into from
Jan 2, 2024
Merged

Xtensa LSTM: #2150

merged 17 commits into from
Jan 2, 2024

Conversation

cad-audio
Copy link
Contributor

@cad-audio cad-audio commented Jul 31, 2023

Enabled LSTM kernel support for XTENSA target.
Updated xtensa_downloads script to use the latest HiFi NN Libraries.

The 8x16 unit test cases has non-zero zero_point for 16 bit output.
https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/kernels/testdata/lstm_test_data.cc#L255C1-L258C61

Default run for all the 8x16 unit test cases result: FAIL. This is due to non-zero output offset value.

BUG=#1867

Enabled LSTM kernel support for XTENSA target.
@cad-audio cad-audio requested a review from a team as a code owner July 31, 2023 08:03
@rascani rascani requested a review from advaitjain July 31, 2023 17:41
@TFLM-bot TFLM-bot removed the ci:run label Aug 2, 2023
@advaitjain
Copy link
Member

#2171 updates the test case to have zero_point=0. Will the tests now pass for the Xtensa kernels?

@vp-cad
Copy link

vp-cad commented Aug 15, 2023

#2171 updates the test case to have zero_point=0. Will the tests now pass for the Xtensa kernels?

Yes, with this update, tests should pass for the Xtensa kernels.

rascani
rascani previously approved these changes Sep 20, 2023
…fi nn hlibraries

and updated transpose_conv to use the latest nn library.
Copy link
Contributor

github-actions bot commented Nov 6, 2023

"This PR is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

@github-actions github-actions bot added the Stale label Nov 6, 2023
@rascani
Copy link
Collaborator

rascani commented Nov 6, 2023

@cad-audio - bump. I'd like to land this, but the tests are still failing.

@github-actions github-actions bot removed the Stale label Nov 7, 2023
to use number of samples, instead of bytes.
rascani
rascani previously approved these changes Dec 5, 2023
TFLM has historically used a HIFI4 define for both HiFi3/3z and HiFi4
cores. That was recently split to use a separate define for HiFi3/3z to
include the different NDSP libraries. This commit updates the PR to use
this new convention within the xtensa kernels that were changed.
The xa_nnlib_hifi5 library has a modified copy of the NDSP library
contained within it. The TFLM repository has recently switched to using
the standalone copy of NDSP library for all HiFis. There are some
mismatches between these two versions which caused compilation failures
in TFLM for HiFi5. In particular, the DISCARD_FUN_FOR_NONVOID_RETURN
macro was missing from the NDSP HiFi5 library, which is necessary for
compiling xa_nn_matumul_f16.c. This commit adds that macro to the local
TFLM patch that we maintain.
@mergify mergify bot merged commit 17d0e7f into tensorflow:main Jan 2, 2024
70 of 71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants