C2_M1 Assignment unittests_excercise4 does not recognize answer text

The unit test says that model.parameters() is not called even when it is there and provides output correctly.

Hi @Shanmugam_Sudalaimut,

Please make sure your are initialising the variable

model_parameters = ......

exactly as instructed.

yes it is initialized exactly as instructed.

(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not. You can share the errors you get)

Hi @Shanmugam_Sudalaimut,

Please do not share your solution code in public threads. If I or others have to look at those, we’ll request you to share those in a private message. I have removed your solution code.

With that being said, you are right, your model_parameters seems to be implemented correctly.

I’m going to send you a private message regarding this.

Best,
Mubsi

Ok sure, I will not post code publicly. Thanks for the quick resolution.

Shanmugam was failing the test because their solution was not as expected for total_trainable_params = ... . Unfortunately, the test was not outputting the correct error. This will be fixed soon.