You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aside from that issue, this code does not restrict the u, so that the layer is invertible (w^t@u >-1).
Instead, the planar flow implementation basically reprojects the u, if w^t@u>-1 once it is not fulfilled anymore.
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.
The text was updated successfully, but these errors were encountered: