Ver Fonte

Merge pull request #265 from eltociear/patch-2

chore: update encoder.py
Xiang Lyu há 1 ano atrás
pai
commit
43a5f9cc58
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      cosyvoice/transformer/encoder.py

+ 1 - 1
cosyvoice/transformer/encoder.py

@@ -297,7 +297,7 @@ class BaseEncoder(torch.nn.Module):
                rate.
                rate.
             3. Currently, nn.Sequential is used to stack all the convolution
             3. Currently, nn.Sequential is used to stack all the convolution
                layers in subsampling, we need to rewrite it to make it work
                layers in subsampling, we need to rewrite it to make it work
-               with cache, which is not prefered.
+               with cache, which is not preferred.
         Args:
         Args:
             xs (torch.Tensor): (1, max_len, dim)
             xs (torch.Tensor): (1, max_len, dim)
             chunk_size (int): decoding chunk size
             chunk_size (int): decoding chunk size