Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine LSTMBlockCell to support dynamic rnn (#5963)
1. Refine conversion of `LSTMBlockCell` 1) Make its output follows definition in TensorFlow 2) Avoid introducing variables which doesn't match any placeholder nodes in TensorFlow graph 2. About change in test_forward_ptb States nodes of LSTMBlockCell in this PB file are actually Constant node. TF can feed data to those Constant nodes but relay can't do that, so current conversion of LSTMBockCell introduces extra variables to solve this issue. But this causes that relay IR doesn't match original TF graph. This PR solves this issue by convert those states node into placeholders.
- Loading branch information