Skip to content

Commit

Permalink
convert size to an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyuxin0511 committed May 27, 2024
1 parent dac2427 commit 960c574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindaudio/models/decoders/greedydecoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def process_string(self, sequence, size, remove_repetitions=False):
"""
string = ""
offsets = []
for i in range(size):
for i in range(int(size)):
char = self.int_to_char[sequence[i].item()]
if char != self.int_to_char[self.blank_index]:
if (
Expand Down

0 comments on commit 960c574

Please sign in to comment.