4.0.0 carlini_wagner_l2 bug Dimensions must be equal, but are 3 and 20 for '{{node mul_5}} = Mul[T=DT_FLOAT](const, Maximum)' with input shapes: [20,32,32,3], [20]. #1236
inspirepassion
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that there should be a bug in carlini_wagner_l2:
The original code for
const
isconst = tf.ones(shape) * self.initial_const
, which gave me error above.const = tf.ones(shape) * self.initial_const
But I noticed when I changed it to
const = tf.ones(shape[:1]) * self.initial_const
, then it's fixed.Beta Was this translation helpful? Give feedback.
All reactions