C4W1 Assignment - Exercise 3 Decoder Function

Hello!

Please see the unit test output error message I received for the ‘Decoder’ function exercise. Any hints or direction would be greatly appreciated! Thanks in advance…

1 Like

Here’s the output of that function with instrumentation to show the shapes at each internal step. I hope that will shed some light on where things go off the rails.

dec1
target.shape (64, 15)
dec2
x.shape (64, 15, 256)
dec3
x.shape (64, 15, 256)
ca1
ca2
ca3
ca4
dec4
x.shape (64, 15, 256)
dec5
x.shape (64, 15, 256)
dec6
logits.shape (64, 15, 12000)
Tensor of contexts has shape: (64, 14, 256)
Tensor of right-shifted translations has shape: (64, 15)
Tensor of logits has shape: (64, 15, 12000)
1 Like

Thanks so much!!

2 Likes

I discovered my issue. I had return_sequences = False for the post_attention RNN. Once I changed it to True, the unit test worked.

2 Likes

I encountered other problems on C4W1 assignment exercise 3 Decoder. I am not sure whether I should create another topic, and so I put it here. Could I share what I have written here as well?

kindly create new post topic for your issue. don’t post on old threads as chances of missing out your comment would be high.

Update the learner created a new topic as instructed, so closing this topic thread.

1 Like