fastmachinelearning / hls4ml

Machine learning on FPGAs using HLS
https://fastmachinelearning.org/hls4ml
Apache License 2.0
1.24k stars 402 forks source link

Fix RNN layers when strategy=resource #780

Closed vloncar closed 1 year ago

vloncar commented 1 year ago

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 include strategy to verify the behavior is correct.

Test Configuration:

Checklist