Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Support initial states for Bidirectional RNN #417

Merged
merged 14 commits into from
Apr 1, 2020

Conversation

cjermain
Copy link
Contributor

This PR provides support for initial states in Bidirectional SimpleRNN, GRU, and LSTM layers. It also fixes a bug where leveraging two outputs of a Keras node can cause parsing failures (see the changes in parser.py). Support was extended for LSTM and Bidirectional layers that have dynamic sequence lengths (seq_length = None), so that it now supports down to opset 5. This was previously possible in terms of the ONNX spec, but would raise an error.

@lgtm-com
Copy link

lgtm-com bot commented Mar 29, 2020

This pull request fixes 2 alerts when merging ffb7041 into aad8ed8 - view on LGTM.com

fixed alerts:

  • 1 for Unused import
  • 1 for NotImplemented is not an Exception

@cjermain
Copy link
Contributor Author

Looks like there are issues in Python 3.7 that need to be addressed.

@lgtm-com
Copy link

lgtm-com bot commented Mar 30, 2020

This pull request fixes 2 alerts when merging 9cc6446 into aad8ed8 - view on LGTM.com

fixed alerts:

  • 1 for Unused import
  • 1 for NotImplemented is not an Exception

@cjermain
Copy link
Contributor Author

@wenbingl, can you review this PR?

@jiafatom jiafatom requested a review from wenbingl March 30, 2020 17:13
keras2onnx/parser.py Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants