Encodec model. (#1771)

* Encodec model.

* Fixes.

* Add the padding functions.

* Get the LSTM bit to work.

* Get the encodec model to generate some tokens (decoder only for now).

* Minor tweak.

* Minor tweak.
This commit is contained in:
Laurent Mazare
2024-02-27 22:59:40 +01:00
committed by GitHub
parent 205767f9de
commit 0c49e95dfb
7 changed files with 834 additions and 1 deletions

View File

@ -197,7 +197,7 @@ impl RNN for LSTM {
fn states_to_tensor(&self, states: &[Self::State]) -> Result<Tensor> {
let states = states.iter().map(|s| s.h.clone()).collect::<Vec<_>>();
Tensor::cat(&states, 1)
Tensor::stack(&states, 1)
}
}