Can I Implement a Point-wise Operation via convolution3dLayer?

1 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by