Skip to content

Commit

Permalink
Fix for FloorDiv Function Warning (#1760)
Browse files Browse the repository at this point in the history
* Fix for Floor Function Warning

Fix for Floor Function Warning

* Adding double quotes to fix formatting

Adding double quotes to fix formatting

* Update glow_tts.py

* Update glow_tts.py
  • Loading branch information
iprovalo authored Jul 20, 2022
1 parent 4f31402 commit 903d9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/tts/models/glow_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def preprocess(self, y, y_lengths, y_max_length, attn=None):
y = y[:, :, :y_max_length]
if attn is not None:
attn = attn[:, :, :, :y_max_length]
y_lengths = (y_lengths // self.num_squeeze) * self.num_squeeze
y_lengths = torch.div(y_lengths, self.num_squeeze, rounding_mode="floor") * self.num_squeeze
return y, y_lengths, y_max_length, attn

def store_inverse(self):
Expand Down

0 comments on commit 903d9c7

Please sign in to comment.