C4W1_Assignment Exercise 5 - Translatе

I am not sure what to do with “state”:
initial hidden and cell states should be tensors of zeros with shape (1, UNITS)
state = [tf.zeros((1, UNITS))…ets
in iteration
but TypeError: Decoder.init() got an unexpected keyword argument ‘state’

1 Like

You probably have a mistake with class Decoder(tf.keras.layers.Layer) especially the call method! I would review the implementation of that first!

1 Like

Thank you for reply!

1 Like

Hello! What may be meaning or this error in task 5

Hi @RyeToast

In this case, you should have probably created new topic.

In any case, note the cell above the Exercise 5, it almost exactly shows what steps you should take (which functions you need).