Git Product home page Git Product logo

Comments (16)

da03 avatar da03 commented on September 26, 2024 7

Not sure if this is what you need, but I have figured out a workaround here: https://github.com/da03/TFLite-Micro-Seq2Seq. It's still a hacky solution in two aspects: first, the embedding layer is implemented in C directly; second, I'm dumping only a single step of the LSTM and doing the for loop in C since subgraphs of size more than 1 is not supported.

from tflite-micro.

brad-nix avatar brad-nix commented on September 26, 2024 2

Any updates on this? I'm trying to use an lstm on a microcontroller and keep getting the error (only 1 subgraph supported). Is there any way to get an rnn onto the micro?

from tflite-micro.

advaitjain avatar advaitjain commented on September 26, 2024 2

This particular issue is talking about RNN with GRU cells. The unimplemented OPs and multiple subgraph support are now part of the TFLM tree. My preference would be to limit this issue for issues related to GRU models.

Please create a separate issue for LSTM support - we are working on that and you can likely expect something in the coming months.

from tflite-micro.

stefanYli avatar stefanYli commented on September 26, 2024 1

Any updates? I have a similar issue. I tried building a univariate time series forecasting system with LSTMs that run on a micro-controller. The model is build and compiled with Keras. The Tf Lite version is 2.4.1. The model works fine and compiles, but when I try to allocate tensors on the Arduino IDE it says that only one subgraph is currently supported on the serial monitor.

from tflite-micro.

jdduke avatar jdduke commented on September 26, 2024

Looping in @petewarden

from tflite-micro.

StuartIanNaylor avatar StuartIanNaylor commented on September 26, 2024

Hi apols to ask again but wondering if 'RNN support for Tensorflow Lite Micro' has had any development?

from tflite-micro.

wenjingyang avatar wenjingyang commented on September 26, 2024

Hi, I had similar issue. Is there any updates?

from tflite-micro.

dmpiergiacomo avatar dmpiergiacomo commented on September 26, 2024

Hi, any updates on this? Thank you.

from tflite-micro.

advaitjain avatar advaitjain commented on September 26, 2024

TFLM now supports many of the features (multiple subgraphs, additional OPs) that were blockers when this issue was first created. Please feel free to add any remaining missing features to this issue.

from tflite-micro.

expeon07 avatar expeon07 commented on September 26, 2024

TFLM now supports many of the features (multiple subgraphs, additional OPs) that were blockers when this issue was first created. Please feel free to add any remaining missing features to this issue.

Hi, I still get the subgraph error. Are RNNs supposed to be already supported now?

from tflite-micro.

StuartIanNaylor avatar StuartIanNaylor commented on September 26, 2024

If anyone would like to provide a lstm for the new ESP32-S3 as think xtensa or is it cadence with the LX series have kept that layer behind a paywall.
For me on micro LSTM or GRU was a cul-de-sac for KWS which have some great LSTM/GRU models fave being CRNN as its lite compared to others for very similar accuracy.

Or do I have it wrong and the code does port to ESP32 specifically S3 as that has the vector instructions to make it much more model capable?

from tflite-micro.

trylaarsdam avatar trylaarsdam commented on September 26, 2024

TFLM now supports many of the features (multiple subgraphs, additional OPs) that were blockers when this issue was first created. Please feel free to add any remaining missing features to this issue.

Looks like even though there is LSTM support now in TFLM, the TensorListFromTensor, TensorListReserve, and TensorListStack ops to support RaggedTensors are still not supported.

Is there any way to implement these on my own, or is there a specific reason (most MCUs missing instructions to perform them, etc) why they are not included with TFLM?

Fixing the input dimensions with a signature and concrete function gets around this issue for me, but it'd be nice to not need to fix the input size

from tflite-micro.

github-actions avatar github-actions commented on September 26, 2024

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

from tflite-micro.

github-actions avatar github-actions commented on September 26, 2024

"This issue is being closed because it has been marked as
stale for 5 days with no further activity."

from tflite-micro.

jonnor avatar jonnor commented on September 26, 2024

It seems that GRU models are still not supported. So this is still relevant?

from tflite-micro.

kslavka avatar kslavka commented on September 26, 2024

Is there a support or tf.keras.layers.GRU in TFlite Micro, the same way it was done for UNIDIRECTIONAL_SEQUENCE_LSTM in 2022?
Specifically, how to get a single GRU layer in TFLite model instead of unrolled GRU with multiple FullyConected, Mul, SPLIT, and Subs.
Attaching a link to an article talking about LSMT support in TFLM.

from tflite-micro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.