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

Question about gaussian distribution internals. #1232

Open
bolshoytoster opened this issue Jun 24, 2024 · 0 comments
Open

Question about gaussian distribution internals. #1232

bolshoytoster opened this issue Jun 24, 2024 · 0 comments

Comments

@bolshoytoster
Copy link

I'm trying to port ppo2 to rust, and I've managed to mostly do this. I have, however come across something I don't understand.

In baselines/common/distributions.py, when creating the DiagGaussianDistribution, the tensor mean is multiplied by 0, then added to logstd:

pdparam = tf.concat([mean, mean * 0.0 + logstd], axis=1)

Can anyone explain why this isn't just this?

pdparam = tf.concat([mean, logstd], axis=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