From 9efb5e1f62d315957cca1eccc7a2886f6b21142f Mon Sep 17 00:00:00 2001 From: Johannes <38836884+BeiJohann@users.noreply.github.com> Date: Mon, 9 Dec 2019 15:13:48 +0100 Subject: [PATCH] Update train_pt.py removed .encode('utf-8') so that it match the tutorial and do not confuse other people like me :) --- text_generation/train_pt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_generation/train_pt.py b/text_generation/train_pt.py index b413e31..946ed0b 100644 --- a/text_generation/train_pt.py +++ b/text_generation/train_pt.py @@ -107,7 +107,7 @@ def predict(device, net, words, n_vocab, vocab_to_int, int_to_vocab, top_k=5): choice = np.random.choice(choices[0]) words.append(int_to_vocab[choice]) - print(' '.join(words).encode('utf-8')) + print(' '.join(words)) def main():