ComputeLibrary
ComputeLibrary copied to clipboard
settings for "fully connected" convolution
In order to perform "fully connected" convolution, I'm considering the following settings :
- first 2 dimensions (width and height) of "weights" tensor : same as for input data tensor
- first 2 dimensions (width and height) of output data tensor : both set to 1
- in PadStrideInfo : padding set to 0 Are any additional settings required for this type of convolution ? How should "stride" be set in PadStrideInfo ? Is there any meaning to this setting anyway ?
Hi @joel-mi,
for what concerns the fully connected layer, you shouldn't need the PadStrideInfo information.
The configure function for NEFullyConnectedLayer (https://github.com/ARM-software/ComputeLibrary/blob/master/arm_compute/runtime/NEON/functions/NEFullyConnectedLayer.h#L62) accepts the following arguments:
- Tensor: input. This input tensor can either come from a convolution layer or from another fully connected layer
- Tensor: weights. This input tensor stores the weights of the fully connected layer
- Tensor: biases. This input tensor stores the biases of the fully connected layer
- Tensor: Output. The output result
- Optional. transpose_weights. It says if the tensor for the weights must be transpose
Thanks. Gian Marco
Thanks I didn't notice that there was a NEFullyConnectedLayer class, so by mistake I was trying to use NEConvolutionLayer for fully connected