[Link to the classroom item you are referring to:]general-implementation-of-forward-propagation
Description:
The video talks about implementation of forward propagation using Python. While I understood the mock code, the dense function was defined as dense(a_in, W, b). This was missing the no.of units or neurons parameter? How is that accommodated in this mock code? Am I misunderstanding this?
In the previous Tensorflow lesson, we know that tensorflow’s Dense needs the units parameter. Behind the scene, tensorflow uses it to create the Dense’s weight matrix because the matrix’s shape is (number of units in previous layer, number of units for this layer).
However, in this lesson, since we are already giving this dense the W weight matrix, it would not need the units parameter for it to create any weight matrix, instead, we can tell the units from the shape of W which @mappx has pointed out for us.
Cheers,
Raymond