michetonu / gradient_reversal_keras_tf

Keras implementation of a gradient reversal layer for the Tensorflow backend
GNU General Public License v3.0
91 stars 24 forks source link

error in build #8

Closed senjed closed 2 years ago

senjed commented 3 years ago

I get the following error when I call flip_layer = Flip(X). I changed self.trainable_weights to self._trainable_weights in build but that does not solve the problem.

AttributeError: Can't set the attribute "trainable_weights", likely because it conflicts with an existing read-only @property of the object. Please choose a different name.

michetonu commented 2 years ago

See https://github.com/michetonu/gradient_reversal_keras_tf/issues/9