Can I Implement a Point-wise Operation via convolution3dLayer?

조회 수: 3 (최근 30일)
Theron FARRELL
Theron FARRELL 2019년 6월 5일
편집: Theron FARRELL 2019년 6월 5일
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에서 Custom Training Loops에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by