Skip to content

computing _u in planar flow #2

@BigTuna08

Description

@BigTuna08

I think in the self._u() method of your PlanarFlow class, you have

tf.math.sqrt(tf.reduce_sum(self.w ** 2.0)))

but it should be just
tf.reduce_sum(self.w ** 2.0))

as the paper uses the squared norm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions