fix bug in discrete_net.py (#10)

This commit is contained in:
Doxie 2020-03-31 16:13:53 +08:00 committed by GitHub
parent 04208e6cce
commit 98feb79057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ class Actor(nn.Module):
def forward(self, s, state=None, info={}):
logits, h = self.preprocess(s, state)
logits = F.softmax(logits, dim=-1)
logits = F.softmax(self.last(logits), dim=-1)
return logits, h