The output seem to match the expected the output but somehow the tests are failing with the below mentioned error message
Error: Wrong shape for variable 2.
Error: Wrong output for variable 2.
Hi, @seekteck03 !
This error typically means there’s a mismatch between the expected and actual shape of the data being passed through your neural network.
You can print out the model summary for instance If you’re using Keras, run model.summary() — it will show each layer’s input and output shapes. This helps you locate where the shapes go wrong.
Let me know if you have any other questions, happy learning!
1 Like
Please show us the full output you get, not just the error message. One general point to note is that there is frequently more that one test case, so be careful not to hard-code things to match the first test case.
1 Like