Comments (16)
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.
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.
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.
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.
Looping in @petewarden
from tflite-micro.
Hi apols to ask again but wondering if 'RNN support for Tensorflow Lite Micro' has had any development?
from tflite-micro.
Hi, I had similar issue. Is there any updates?
from tflite-micro.
Hi, any updates on this? Thank you.
from tflite-micro.
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.
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.
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.
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.
"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."
from tflite-micro.
"This issue is being closed because it has been marked as
stale for 5 days with no further activity."
from tflite-micro.
It seems that GRU models are still not supported. So this is still relevant?
from tflite-micro.
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)
- build: C++17 is not enabled on all platforms HOT 3
- log32 overflow ? HOT 2
- TFLM compression changes (2nd)
- TFLITE micro ERROR An error occurred during the fetch of repository 'tflm_pip_deps_numpy' HOT 2
- TFLM compression changes (3rd)
- Impossible to compile with recent GCC HOT 1
- TFLM implementation in Contiki-NG HOT 1
- TFLM compression changes (4th) HOT 1
- Cortex-M CI Run Failed HOT 3
- Quantisize LSTM Model HOT 5
- Python dependency issue for aarch64 HOT 1
- While OP Issue in TFLM
- Custom memory allocation/planning that may not be that custom HOT 3
- Does TFLM support MFCC? HOT 2
- Training person detection model. HOT 1
- Add int16 support to MINIMUM and MAXIMUM HOT 2
- Fail to run person_detect.tflite via TFLite benchmark_model HOT 2
- Add int16 support to RELU6
- Rename tflite namespace HOT 1
- Adding support for Rfft2d HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tflite-micro.