Can I Implement a Point-wise Operation via convolution3dLayer?
조회 수: 3 (최근 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
MATLAB 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Custom Training Loops에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!