Skip to content

Commit 4a54262

Browse files
authored
Merge pull request yenchenlin#31 from jgyllinsky/patch-1
Update deep_q_network.py for Tensorflow 1.0
2 parents eb35b8f + a0f05a9 commit 4a54262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deep_q_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def trainNetwork(s, readout, h_fc1, sess):
7979
# define the cost function
8080
a = tf.placeholder("float", [None, ACTIONS])
8181
y = tf.placeholder("float", [None])
82-
readout_action = tf.reduce_sum(tf.mul(readout, a), reduction_indices=1)
82+
readout_action = tf.reduce_sum(tf.multiply(readout, a), reduction_indices=1)
8383
cost = tf.reduce_mean(tf.square(y - readout_action))
8484
train_step = tf.train.AdamOptimizer(1e-6).minimize(cost)
8585

0 commit comments

Comments
 (0)