Add a LSTM test. (#681)

* Add a LSTM test.

* Clippy.
This commit is contained in:
Laurent Mazare
2023-08-30 20:05:42 +02:00
committed by GitHub
parent 2047d34b7c
commit 21e1c73892
2 changed files with 43 additions and 1 deletions

View File

@ -110,7 +110,7 @@ pub fn lstm(
config.w_ih_init,
)?;
let w_hh = vb.get_with_hints(
(4 * hidden_dim, in_dim),
(4 * hidden_dim, hidden_dim),
"weight_hh_l0", // Only a single layer is supported.
config.w_hh_init,
)?;