C2W3: Tensorflow Introduction Exercise 6: Unable to understand the problem

I am unable to solve the 6th exercise “Compute Cost”. I tried

[Removed solution code]

but it’s giving tf.Tensor(0.147125, shape=(), dtype=float32), I also tried to take tf.transpose() of both variable and then compute the cost but the values goes double from expected output.

I am not able to understand what I am missing, I did what the exercise has mentioned but the problem is not solved. Any hint will be highly appreciated.

Hi, @Darkstar.

Here are a few hints.

Let me know if you need more help.

Good luck :slight_smile: