mirror of
https://github.com/wassname/DeepRL.git
synced 2026-10-07 11:13:51 +08:00
Fix a bug of Categorical DQN
This commit is contained in:
1 parent
3e47451ef6
commit
5b4ecd882e
4 files changed
+20
-13
No files matched your search
@@ -99,5 +99,5 @@ class CategoricalNet(BasicNet):
|
||||
pre_prob = self.fc_categorical(phi).view((-1, self.n_actions, self.n_atoms))
|
||||
prob = F.softmax(pre_prob, dim=-1)
|
||||
if to_numpy:
|
||||
return pre_prob.cpu().data.numpy()
|
||||
return prob.cpu().data.numpy()
|
||||
return prob
|
||||
Reference in new issue
Block a user