Add some noqa directives (for now)

This commit is contained in:
Aarni Koskela 2023-09-27 01:15:39 +03:00
parent 00f8f4892a
commit 33b69c6c09
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ Example run:
# if the vocabulary was passed, replace the default
if "characters" in C.keys():
symbols, phonemes = make_symbols(**C.characters)
symbols, phonemes = make_symbols(**C.characters) # noqa: F811
# load the model
num_chars = len(phonemes) if C.use_phonemes else len(symbols)

View File

@ -43,7 +43,7 @@ class StreamGenerationConfig(GenerationConfig):
class NewGenerationMixin(GenerationMixin):
@torch.no_grad()
def generate(
def generate( # noqa: PLR0911
self,
inputs: Optional[torch.Tensor] = None,
generation_config: Optional[StreamGenerationConfig] = None,