Skip to content

Commit 772c0dd

Browse files
author
shixiaowen03
committed
distributional rl
1 parent 7d03dd0 commit 772c0dd

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

.idea/workspace.xml

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RL/Basic-DisRL-Demo/Categorical_DQN.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def build_layers(self, state, action, c_names, units_1, units_2, w_i, b_i, reg=N
6060
concatenated = tf.concat([dense2, tf.cast(action, tf.float32)], 1)
6161
with tf.variable_scope('dense3'):
6262
dense3 = dense(concatenated, self.atoms, [self.atoms], w_i, b_i) # 返回
63-
return dense3
63+
return tf.nn.softmax(dense3)
6464

6565
def build_cate_dqn_net(self):
6666
with tf.variable_scope('target_net'):

0 commit comments

Comments
 (0)