mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
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:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user