Error in PyTorch: Techniques and Ecosystem Tools C2 M1 grader

I’m getting the following grader error:

“Object required for grading not found. If you haven’t completed the exercise this is expected. Otherwise, check your solution as grader omits cells that throw errors.”

For the graded function get_trainable_params, I implemented:

** grade function codes removed as posting codes that grade your assignment is considered violation of code of conduct. if a mentor wants to look at your codes they will ask you to send the codes my personal DM, until then post only error, or your output to expected output or submission grader output screenshot.**

The function runs without errors and appears to return the correct number of trainable parameters. However, the grader still reports that the required object was not found.

I’ve rerun the notebook and checked that the function name matches the assignment instructions exactly. Has anyone encountered this error before? Is there another cell or object that the grader depends on that could be causing this message?

are you submitting before completing all the exercises?

Your PyTorch logic itself is correct, but the grader is failing to find the object because the cell structure was altered:

  1. Grader Markers: The autograder parses the notebook using the ### START CODE HERE ### and ### END CODE HERE ### comments. If you deleted these markers while rewriting the cell, the grader cannot extract your function.
  2. Template Variables: You removed the template line model_parameters = None. Graders often perform static analysis to verify specific template variables are defined(Only edit None variables)

Reset the cell to the original template, keep all comments/markers intact, and assign the parameters to the provided model_parameters variable between the markers.

Thanks for your reply
I have completed all the exercises include the forth one which omits this error.
after multiple submissions the grader made it through with out changing a thing.

Thanks for your reply
After multiple submissions the grader made it through with out changing a thing.