Skip to content

Commit a8025b7

Browse files
authored
Update dynamic_quantization_tutorial.py
1 parent bfd3f20 commit a8025b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced_source/dynamic_quantization_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def tokenize(self, path):
178178

179179
word = corpus.dictionary.idx2word[word_idx]
180180

181-
outf.write(str(word.encode('utf-8')) + ('\n' if i % 20 == 19 else ' '))
181+
outf.write(str(word) + ('\n' if i % 20 == 19 else ' '))
182182

183183
if i % 100 == 0:
184184
print('| Generated {}/{} words'.format(i, 1000))

0 commit comments

Comments
 (0)