Explorar el Código

Update common.py

0xCAFEBABE0 hace 11 meses
padre
commit
1d8d94de82
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      cosyvoice/utils/common.py

+ 0 - 2
cosyvoice/utils/common.py

@@ -161,7 +161,6 @@ def is_only_punctuation(text):
     punctuation_pattern = r'^[\p{P}\p{S}]*$'
     return bool(regex.fullmatch(punctuation_pattern, text))
 
-  
 def mask_to_bias(mask: torch.Tensor, dtype: torch.dtype) -> torch.Tensor:
     assert mask.dtype == torch.bool
     assert dtype in [torch.float32, torch.bfloat16, torch.float16]
@@ -171,4 +170,3 @@ def mask_to_bias(mask: torch.Tensor, dtype: torch.dtype) -> torch.Tensor:
     #     chunk_masks = (1.0 - chunk_masks) * torch.finfo(dtype).min
     mask = (1.0 - mask) * torch.finfo(dtype).min
     return mask
-