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?
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
You will understand the hint as you know 12000 ( your output) is size of the vocabulary where it is looking for 16 (expected) which is unit parameter.
You are probably using global variables (VOCAB_SIZE, UNITS) instead of using the local arguments (vocab_size, units) in the __init__method of Decoder class for vocab_size and units.
Here is the init of the Decoder, just for reference (I can delete it if it violates the rules).
(image removed by moderator as it contained grade cell codes)
I got the same error as @WASIOU_JAHARABI . And I use the local arguments (vocab_size, units) in the __init__method of Decoder class for vocab_size and units. I have spent hours but still can’t figure out the error. Screenshot attached:
I found the error. It had to do with calling function Decoder/Encoder with “self”. Otherwise, it will take the global variables previously defined in previous unit tests.