Course 4 Week 1 Assignment 1 Excercise 3 LSTM_Cell_forward

In addition to Tom’s points about the shapes, it’s worth noting that Prof Ng is very consistent in his notation:

For “elementwise” products, he always and only will use the operator "*" in the math formula.

For dot products, he always writes the two operands adjacent with no explicit operator.

It’s been that way since day 1 of DLS C1. Here’s a thread with a more complete discussion of the general point and also a discussion of how “broadcasting” fits in.