The RNN layers erroneously transposed layers during initialization in the backend, despite this functionality being moved into a separate pass. I also cleaned up the code a bit to align it more with the rest of the codebase. It fixes #779.
Type of change
[x] Bug fix (non-breaking change that fixes an issue)
Tests
The existing test_rnn_accuracy has been extended to include strategy to verify the behavior is correct.
Description
The RNN layers erroneously transposed layers during initialization in the backend, despite this functionality being moved into a separate pass. I also cleaned up the code a bit to align it more with the rest of the codebase. It fixes #779.
Type of change
Tests
The existing
test_rnn_accuracy
has been extended to includestrategy
to verify the behavior is correct.Test Configuration:
Checklist
pre-commit
on the files I edited or added.