Submission Error for TF1 Course 2 Week 1: No module named 'keras.src'

When I submitted the assignment, I’m getting an error for the graded functions portion. The grade received for this portion is 0.

The message I receive is “There was a problem compiling the code from your notebook. Details:
No module named ‘keras.src’”

Submission for training history worked well. Please help me submit the code portion.

Hello @Daniel_Wong ,

Welcome to the community!!

I wonder what is .src doing here? You made changes to the import code?

Remove wherever you have written .src from keras

With regards,
Nilosree Sengupta

Thank you. I didn’t recall adding the line “from keras.src.optimizers import Adam”.

I commented it out and submission works now.

Hello @Daniel_Wong ,

You’re welcome!!
Happy learning!!

With regards,
Nilosree Sengupta