google-ai-edge / LiteRT

LiteRT is the new name for TensorFlow Lite (TFLite). While the name is new, it's still the same trusted, high-performance runtime for on-device AI, now with an expanded vision.
https://ai.google.dev/edge/litert
Apache License 2.0
169 stars 13 forks source link

[RNN] TFLite does not appear to be using the UnidirectionalSequenceLSTM #41

Open gaikwadrahul8 opened 5 days ago

gaikwadrahul8 commented 5 days ago

1. System information

2. Code

1) https://colab.research.google.com/gist/eric/f00f071e527f9fa7b2ed39f8d482fbb4/tensorflow-datasets.ipynb 2) https://colab.research.google.com/gist/eric/a292799568831371b7686a2b8cefcd0b/tensorflow-lite-debugger-colab.ipynb

model.zip

3. Failure after conversion

I've found that any Keras LSTM causes this issue.

I expected TFLite to use the UnidirectionalSequenceLSTM op, but instead it seems to be doing something else that then requires the use of flex ops, which I would like to avoid trying to get to work with my tflite deployment situation.

gaikwadrahul8 commented 2 days ago

This issue originally reported by @eric has been moved to this dedicated repository for LiteRT to enhance issue tracking and prioritization. To ensure continuity, we have created this new issue on your behalf.

We appreciate your understanding and look forward to your continued involvement.