C4 W4 Neural style transfer E1

I seem to keep on getting an “truth value is ambiguous” error whenever the compute_content_cost function is called. I’m not sure why, anybody can help?

There is an error in your compute_content_cost() function. It appears to be returning a vector for the cost, rather than a scalar.

1 Like