Hello!
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
state=state
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
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).
Cheers