Course1 Week3 "Improve MNIST with convolutions"

I can’t solve this error ‘tuple’ object has no attribute ‘reshape’ for several hours.
Could someone please come up with a solution?


AttributeError Traceback (most recent call last)
in
3
4 # Apply your function
----> 5 training_images = reshape_and_normalize(training_images)
6
7 print(f"Maximum pixel value after normalization: {np.max(training_images)}\n")

in reshape_and_normalize(images)
6
7 # Reshape the images to add an extra dimension
----> 8 images=images.reshape(60000, 28, 28, 1)
9 # Normalize pixel values
10 images = images/255.0

AttributeError: ‘tuple’ object has no attribute ‘reshape’

If this topic belongs to MLEP, please share the lab url to the assignment writeup page (this is the one from where you open the jupyter workspace).

If not, here’s the community user guide to move your topic to the right subcategory. Do remove code from the post. It’s okay to leave the stacktrace around.

OK,I’ll look for another submission page.

Which assignment within MLOps are you referring to?

I take Introduction to TensorFlow for Artificial Intelligence, Machine Learning.
And I was able to find the question form. I am going to post this topic.

Thank you for your advice balaji.