C3W3 Quiz: last question - Concatenate

Hi,
Did anyone get the last question right. I tried both the class Concatenate and the function concatenate from tf.keras.layers.
It did not take that as the correct answer.

  • tf.keras.layers.concatenate([upsampling_layer , conv_output])
  • tf.keras.layers.Concatenate()([upsampling_layer , conv_output])
1 Like

For some reason the grader is sensitive to whitespace. A space before a comma, for example, or not having a space after a comma, is enough to confuse it.

if this satisfies the grader

foo = (a, b)

none of these will

foo = (a , b)
foo = (a,b)
foo = (a ,b)

smh

tf.keras.layers.concatenate([upsampling_layer, conv_output])
This worked.

Maybe you could put in a suggestion that user entered quiz response text strings be compared without whitespace. As long as it’s valid Python, I can’t see why the quiz needs to enforce coding patterns like space-after-comma-but-not-before.

Umm… correct.
Maybe I will do a pull request if I get access to the actual repository