Course 1, Week 3, Exercise 5

That will throw an error (as I’m sure you discovered). The problem is that the dimensions don’t work for dot products without a transpose. Please see this thread for some examples.