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

TF-Lite converter crashes when quantizing GRU layer #557

Open
pkgoogle opened this issue Jan 22, 2025 · 2 comments
Open

TF-Lite converter crashes when quantizing GRU layer #557

pkgoogle opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels
status:awaiting user response awaiting user response

Comments

@pkgoogle
Copy link

Original Issue: tensorflow/tensorflow#76672
Original Author: @bas-aarts

On Apple M1 Pro with MacOs Sonoma 14.1.2 (23B92)
TensorFlow version 2.16.1 (still an issue with TF 2.17.0)

sources + assets:
Gru_quantization_bug.zip

The zip contain a TF saved model and a convert.py script that converts it to a TF-Lite mode, but it crashes

removing either line 11 or 12 from the script makes the compilation pass

@pkgoogle pkgoogle self-assigned this Jan 24, 2025
@pkgoogle
Copy link
Author

Hi @bas-aarts

You can convert a GRU model with https://github.com/google-ai-edge/ai-edge-torch. Does that work for you?

@pkgoogle pkgoogle added the status:awaiting user response awaiting user response label Jan 24, 2025
@NidaaElsayed
Copy link

Hello, is there a way to convert a Keras LSTM model to a quantized Unidirectional Sequence LSTM operator without crashing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting user response awaiting user response
Projects
None yet
Development

No branches or pull requests

2 participants