Skip to content

Commit 74411a0

Browse files
committed
weight and biases in multilayer_perceptron() are changed to add underbar as a prefix.
1 parent 1dba416 commit 74411a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/3 - Neural Networks/multilayer_perceptron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
def multilayer_perceptron(_X, _weights, _biases):
3333
layer_1 = tf.nn.relu(tf.add(tf.matmul(_X, _weights['h1']), _biases['b1'])) #Hidden layer with RELU activation
3434
layer_2 = tf.nn.relu(tf.add(tf.matmul(layer_1, _weights['h2']), _biases['b2'])) #Hidden layer with RELU activation
35-
return tf.matmul(layer_2, weights['out']) + biases['out']
35+
return tf.matmul(layer_2, _weights['out']) + _biases['out']
3636

3737
# Store layers weight & bias
3838
weights = {

0 commit comments

Comments
 (0)