In order to perform the forward pass of a fully connected layer with a weight matrix of shape 5x5, bias vector of shape 1x25, the input should be of shape 25x2. Here's how you can perform the operation in Matlab:
main.m248 chars12 lines
Note that in Matlab, the *
operator performs matrix multiplication while the .'
operator performs matrix transpose.
gistlibby LogSnag