Course 4 Week 4 weird error on exercise 6 of assignment 2

I get the weirdest error when I try to run the code cell number 29.
The error I get is `File “”, line 23, in train_step *
J_content = compute_content_cost(a_C, a_G)
File “”, line 28, in compute_content_cost *
J_content = (tf.reduce_sum(tf.square(tf.subtract(a_C_unrolled, a_G_unrolled), 2))) / (4 * n_H * n_W * n_C)
File “/usr/lib/python3.8/contextlib.py”, line 113, in enter
return next(self.gen)

TypeError: expected string or bytes-like object`

I honestly don’t know what to do.

I think the error comes from the extra term “2” in tf.square while calculating J_content in compute_content_cost, Ex 1. Note that tf.square means to square (power of 2) something and it doesn’t need that extra “2”.

Let me know if it doesn’t solve your problem.

Best,
Saif.