how a conv layer and local layer set the weight matrix size