Skip to content

Question about gaussian distribution internals. #1232

@bolshoytoster

Description

@bolshoytoster

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions