Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why zero/change init of model? #3

Open
penguinshin opened this issue Oct 25, 2018 · 0 comments
Open

Why zero/change init of model? #3

penguinshin opened this issue Oct 25, 2018 · 0 comments

Comments

@penguinshin
Copy link

Hi there, another question - during the actor's initialization, you change it so that theres normal init for the hidden layer and zero/one weight/bias init for the fc layer, why is this?

` nn.init.normal(self.hidden[0].weight.data,
mean=0., std=math.sqrt(2 / self.hidden[0].in_features))
nn.init.constant(self.hidden[0].bias.data, 0.)

    # zeroing output layer
    nn.init.constant(self.out.weight.data, 0.)
    nn.init.constant(self.out.bias.data, 1.)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant