From 83377bf0df5baa16033bd38ab1861b8a6e2c7bcc Mon Sep 17 00:00:00 2001 From: Crista Lopes Date: Mon, 6 Jan 2020 17:46:01 -0800 Subject: [PATCH] We don't need this extra white space --- 40-recurrent/tf-40.py | 1 - 1 file changed, 1 deletion(-) diff --git a/40-recurrent/tf-40.py b/40-recurrent/tf-40.py index e5ed7bd..bae665d 100644 --- a/40-recurrent/tf-40.py +++ b/40-recurrent/tf-40.py @@ -13,7 +13,6 @@ HIDDEN_SIZE = 100 TIME_STEPS = 3 def encode_one_hot(line): - line = " " + line x = np.zeros((len(line), INPUT_VOCAB_SIZE)) for i, c in enumerate(line): index = char_indices[c] if c in characters else char_indices[' ']