C4W1_Assignment Translator unit test

w1_unittest.test_translator(Translator, Encoder, Decoder)

Failed test case: Incorrect third dimension of translator output.
Expected: 16
Got: 12000

even if my code passed the quick checks and the output tensor shape matched with the expected output, it’s failing the test case. I have done the whole code according to the instructions. can anyone help?

Is your code perhaps using a hard-coded value of 12000?

1 Like

My code is not using a hard-coded value. I found my mistake and corrected it. Thanks for your response.

1 Like

Hello, can you please tell us about your mistake ? i got the same problem, it gives this error:
Failed test case: Incorrect output dim of embedding layer.
Expected: 32
Got: 512

Failed test case: Incorrect output dim of embedding layer.
Expected: 64
Got: 512

Failed test case: Incorrect output dim of embedding layer.
Expected: 256
Got: 512

i didn’t know what to put as output_dim value

Thank you

Hi @Burak_Bakkar

You probably hard coded the 512 value instead of using the units parameter.

Cheers

1 Like