Skip to content

Single layer Keras LSTM converted to loop instead of ONNX LSTM op #1851

Open
@JonTriebenbach

Description

@JonTriebenbach

The attached example shows a Keras model with a single layer LSTM that is converted to a loop instead of the expected ONNX LSTM op.

Test system configuration:
Using tensorflow/tensorflow:2.7.1 docker image:

tensorflow-cpu               2.7.1
tf2onnx                      1.10.0

This issue appears to be similar to tf.keras.layers.LSTM not converted to ONNX LSTM layer #1546 with pull request Add Keras LSTM support .

onnx_issue.zip

Please review this issue. Thanks.

Metadata

Metadata

Assignees

Labels

kerasIssues related to Keraspotential bugError in codebase may cause a bug, but no concrete examples observed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions