Skip to content

Commit

Permalink
Add some noqa directives (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Oct 23, 2023
1 parent 018f53a commit d8c3f42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TTS/bin/compute_attention_masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

# 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)
Expand Down
2 changes: 1 addition & 1 deletion TTS/tts/layers/xtts/stream_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, **kwargs):

class NewGenerationMixin(GenerationMixin):
@torch.no_grad()
def generate(
def generate( # noqa: PLR0911
self,
inputs: Optional[torch.Tensor] = None,
generation_config: Optional[StreamGenerationConfig] = None,
Expand Down

0 comments on commit d8c3f42

Please sign in to comment.