mirror of
https://github.com/wassname/DeepRL.git
synced 2026-10-08 11:39:05 +08:00
Update networks for continuous control
This commit is contained in:
1 parent
4f2903eb8f
commit
ceea0a474b
4 files changed
+85
-135
No files matched your search
@@ -110,7 +110,8 @@ class CategoricalActorCriticWrapper:
|
||||
def load_state_dict(self, state_dicts):
|
||||
self.network.load_state_dict(state_dicts)
|
||||
|
||||
def layer_init(layer):
|
||||
def layer_init(layer, w_scale=1.0):
|
||||
nn.init.orthogonal_(layer.weight.data)
|
||||
layer.weight.data.mul_(w_scale)
|
||||
nn.init.constant_(layer.bias.data, 0)
|
||||
return layer
|
||||
Reference in new issue
Block a user