Week4 , assignment 1

I got the value right, but can’t turn it into scalar. It’s a tensor.
If I use numpy() to turn it into a scalar. Now the value is correct but assert test tells that I’m wrong. must use tensorflow function

Which value are you referring to specifically? It would help if you mentioned the function name and the variable.

When you’re using TensorFlow, it wants everything to be a tensor, not a numpy data type.