From 69e9934ae9b89e3d38c812f05b81a8949dd4a5e3 Mon Sep 17 00:00:00 2001 From: Crista Lopes Date: Tue, 31 Dec 2019 16:52:39 -0800 Subject: [PATCH] Minor aesthetic improvements --- 37-dense-shallow-monolithic/tf-37.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/37-dense-shallow-monolithic/tf-37.py b/37-dense-shallow-monolithic/tf-37.py index 8ead01a..bfd288e 100644 --- a/37-dense-shallow-monolithic/tf-37.py +++ b/37-dense-shallow-monolithic/tf-37.py @@ -30,13 +30,11 @@ def decode_one_hot(y): return ''.join(s) def normalization_layer_set_weights(n_layer): - print(n_layer.get_weights()[0].shape) - print(n_layer.get_weights()[1].shape) wb = [] w = np.zeros((LINE_SIZE*INPUT_VOCAB_SIZE, LINE_SIZE*INPUT_VOCAB_SIZE), dtype=np.float32) b = np.zeros((LINE_SIZE*INPUT_VOCAB_SIZE), dtype=np.float32) - # Let lower case letters go through for r in range(0, LINE_SIZE*INPUT_VOCAB_SIZE, INPUT_VOCAB_SIZE): + # Let lower case letters go through for c in string.ascii_lowercase: i = char_indices[c] w[r+i, r+i] = 1