mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00
Encodec encoding demo. (#1775)
This commit is contained in:
@ -283,7 +283,8 @@ impl VectorQuantization {
|
||||
}
|
||||
|
||||
pub fn encode(&self, xs: &Tensor) -> Result<Tensor> {
|
||||
self.codebook.encode_slow(xs)
|
||||
let xs = xs.transpose(1, 2)?;
|
||||
self.codebook.encode_slow(&xs)
|
||||
}
|
||||
|
||||
pub fn decode(&self, embed_ind: &Tensor) -> Result<Tensor> {
|
||||
|
Reference in New Issue
Block a user