Skip to content

Commit 255dffa

Browse files
Merge pull request aymericdamien#51 from shriphani/master
removing hidden weights - not used
2 parents d8e83dd + e812efc commit 255dffa

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

examples/3_NeuralNetworks/bidirectional_rnn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@
4040
# Define weights
4141
weights = {
4242
# Hidden layer weights => 2*n_hidden because of foward + backward cells
43-
'hidden': tf.Variable(tf.random_normal([n_input, 2*n_hidden])),
4443
'out': tf.Variable(tf.random_normal([2*n_hidden, n_classes]))
4544
}
4645
biases = {
47-
'hidden': tf.Variable(tf.random_normal([2*n_hidden])),
4846
'out': tf.Variable(tf.random_normal([n_classes]))
4947
}
5048

notebooks/3_NeuralNetworks/bidirectional_rnn.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,9 @@
8080
"# Define weights\n",
8181
"weights = {\n",
8282
" # Hidden layer weights => 2*n_hidden because of foward + backward cells\n",
83-
" 'hidden': tf.Variable(tf.random_normal([n_input, 2*n_hidden])),\n",
8483
" 'out': tf.Variable(tf.random_normal([2*n_hidden, n_classes]))\n",
8584
"}\n",
8685
"biases = {\n",
87-
" 'hidden': tf.Variable(tf.random_normal([2*n_hidden])),\n",
8886
" 'out': tf.Variable(tf.random_normal([n_classes]))\n",
8987
"}"
9088
]
@@ -284,4 +282,4 @@
284282
},
285283
"nbformat": 4,
286284
"nbformat_minor": 0
287-
}
285+
}

0 commit comments

Comments
 (0)