How to transform fully connected layer into convolution layer?

조회 수: 3 (최근 30일)
QU HAIFENG
QU HAIFENG 2018년 6월 11일
편집: Matt J 2022년 4월 27일
I want to replace a fully connected layer with a convolution layer, but I don't know how to complete it. I reference help document, and find a function named "transposedConv2dLayer", but I don't believe "cropping" is helpful. So if somebody could give me any suggest, thanks a lot.

답변 (1개)

Shounak Mitra
Shounak Mitra 2018년 6월 21일
편집: Matt J 2022년 4월 27일
Hello QU,
Can you please tell me if you're using a Series or DAG network? The steps to replace a layer is different for these 2 network types.
For a Series Network, follow steps here -->
For DAG follow this -->
Also, is the motivation behind replacing the FC layer with a conv2d is to make the network deeper?
  댓글 수: 1
Matt J
Matt J 2022년 4월 27일
편집: Matt J 2022년 4월 27일
The link for the Series Network does not seem applicable. The fully connected layer in that example is replaced by another fully connected layer, not a conv2d layer. Moreover, the new layer is not equivalent to the old one.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by