Support shared stats for continuous A3C

This commit is contained in:
Shangtong Zhang
2017-10-04 20:58:42 -06:00
parent 3935dfc428
commit c773da7d08
7 changed files with 105 additions and 53 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class VanillaNet(BasicNet):
# Base class for actor critic method
class ActorCriticNet(BasicNet):
def predict(self, x, _):
def predict(self, x):
phi = self.forward(x, True)
pre_prob = self.fc_actor(phi)
prob = F.softmax(pre_prob)