Facing issues with Deep Learning Specialization, Course 4 CNN, Week2, Lab

Hello DL community,
I am facing issues with Deep Learning Specialization, Course 4 CNN, Week2, Lab2, Exercise 3.

For some reason in Excercise 3, even though my previous steps are passing but while running cell for history_fine, I am getting the below error:
TypeError: pred must be a Tensor, or a Python bool, or 1 or 0. Found inste
{Moderator Edit: Solution Code Removed}



ad: <class ‘str’>

Are you changing the code of ungraded cells or adding some new code to those cells (or extra cells)?

1 Like

No, Didn’t change any code.
Followed the guidelines in comments.

My Lab ID is: ryuhrnxlztir

The mentors cannot directly look at your notebooks. Please see your DMs for a message from me about how to proceed here.

To update others, please note that True or False is a Boolean while 'Ture' or 'False' ("Ture" or "False") is a string. Yeah, that was a mistake in exercise 2.