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.