Effacer les filtres
Effacer les filtres

Can I Implement a Point-wise Operation via convolution3dLayer?

1 vue (au cours des 30 derniers jours)
Theron FARRELL
Theron FARRELL le 5 Juin 2019
Hi there,
Because there is no point-wise convolution layer in MATLAB, is that correct if I implement it by
% Suppose that there are n channels in the input, that is, n 2D arrays in the input
filterSize = [1, 1, n];
numFilters = 1;
Padding = 'same';
layer = convolution3dLayer(filterSize, numFilters, PaddingMode, 'same');
That is, I conduct 1 convolution along the thrid dimension of the input only.
An associated question, when I run
layer = convolution3dLayer(filterSize, numFilters, 'PaddingSize', [0, 0, 0; 0, 0, 0])
as per the doc
捕获.JPGMATLAB tells me the following:
Error using convolution3dLayer>iParseInputArguments
(line 153)
'PaddingSize' is not a recognized parameter. For a
list of valid name-value pair arguments, see the
documentation for this function.
Error in convolution3dLayer (line 124)
args = iParseInputArguments(varargin{:});
Instead, I have to run
layer = convolution3dLayer(filterSize, numFilters, 'Padding', [0, 0, 0; 0, 0, 0])
I am wondering if that is because the doc has not been updated in time...
Thanks.

Réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by