Skip to content

Commit 18100ea

Browse files
authored
Merge pull request dennybritz#113 from himanshusahni/master
worker name scope should have trailing slash
2 parents 5364539 + bc7ee05 commit 18100ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PolicyGradient/a3c/worker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, name, env, policy_net, value_net, global_counter, discount_fa
8585
# Op to copy params from global policy/valuenets
8686
self.copy_params_op = make_copy_params_op(
8787
tf.contrib.slim.get_variables(scope="global", collection=tf.GraphKeys.TRAINABLE_VARIABLES),
88-
tf.contrib.slim.get_variables(scope=self.name, collection=tf.GraphKeys.TRAINABLE_VARIABLES))
88+
tf.contrib.slim.get_variables(scope=self.name+'/', collection=tf.GraphKeys.TRAINABLE_VARIABLES))
8989

9090
self.vnet_train_op = make_train_op(self.value_net, self.global_value_net)
9191
self.pnet_train_op = make_train_op(self.policy_net, self.global_policy_net)

0 commit comments

Comments
 (0)